|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: p dot sivamurugan at gmail dot com
New email:
PHP Version: OS:


 [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 Feb 29 20:01:30 2024 UTC