[PHP-DB] number_format bug?

2001-02-20 Thread Valerio Ferrucci

I call:

?
$a = 13.8;
$b = number_format($a, 2, ",", ".");
print($b);
?

the output is "13,00"

!!
any idea?
Is it a bug?

Thanks
==
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] number_format bug?

2001-02-20 Thread Lennin Arriola

I was curious about it, so I tried it on my machine and I got "13,80"
win2k+php4.  I think is about settings in your php configuration, although I
don't still find a reference for it.

Lennin Arriola
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] number_format bug?

2001-02-20 Thread Valerio Ferrucci

Does someone know which configuration to change to fix this?

Lennin Arriola wrote:

 I was curious about it, so I tried it on my machine and I got "13,80"
 win2k+php4.  I think is about settings in your php configuration, although I
 don't still find a reference for it.

 Lennin Arriola
 [EMAIL PROTECTED]

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

I call:

?
$a = 13.8;
$b = number_format($a, 2, ",", ".");
print($b);
?

the output is "13,00"

!!
any idea?
Is it a bug?

--

==
Valerio FerrucciTabasoft Sas
[EMAIL PROTECTED]  http://tabasoft.ancitel.it
[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]