ID: 40900 User updated by: p dot sivamurugan at gmail dot com Reported By: p dot sivamurugan at gmail dot com Status: Bogus Bug Type: Strings related Operating System: windows PHP Version: 5.2.1 New Comment:
then how can i retrive the expected answer 98 from the code echo $vLTVformated = "<br>".number_format(0.9800000000000,2,'',''); in PHP5.2.0 Previous Comments: ------------------------------------------------------------------------ [2007-03-23 10:58:05] [EMAIL PROTECTED] The current behaviour is correct. ------------------------------------------------------------------------ [2007-03-23 10:25:32] p dot sivamurugan at gmail dot com Description: ------------ php5.0.2 php5.2.0 differed in formating Reproduce code: --------------- echo $vLTVformated = "<br>".number_format(0.9800000000000,2,'',''); Expected result: ---------------- php5.0.2 = 98 php5.2.0 = 98 Actual result: -------------- php5.0.2 = 98 php5.2.0 = 098 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40900&edit=1