#40900 [Bgs]: differed in formating in php5.0.2 with php5.2.0

From: Date: Fri, 23 Mar 2007 11:52:57 +0000
Subject: #40900 [Bgs]: differed in formating in php5.0.2 with php5.2.0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110735@lists.php.net to get a copy of this message
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] tony2001@php.net 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

« previous php.bugs (#110735) next »