|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40900 differed in formating in php5.0.2 with php5.2.0
Submitted: 2007-03-23 10:25 UTC Modified: 2007-03-23 11:52 UTC
From: p dot sivamurugan at gmail dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.2.1 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 4 = ?
Subscribe to this entry?

 [2007-03-23 10:25 UTC] p dot sivamurugan at gmail dot com

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-23 10:58 UTC]
The current behaviour is correct.
 [2007-03-23 11:52 UTC] p dot sivamurugan at gmail dot com
then how can i retrive the expected answer 98 from the  code 
echo $vLTVformated  =  "<br>".number_format(0.9800000000000,2,'','');
 in PHP5.2.0
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 06:01:28 2024 UTC