php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5754 when i display the numeric type value for 23.12 ,php display 23.1199999999999
Submitted: 2000-07-24 05:19 UTC Modified: 2000-07-24 08:52 UTC
From: chengye at mail dot eq-sd dot ac dot cn Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0.0 OS: linux RH 6.2
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:
MUST BE VALID
Solve the problem:
24 - 12 = ?
Subscribe to this entry?

 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-24 08:52 UTC] stas@php.net
Well, basically it's the same. You can set precision and/or use frmatted print if you need less significant digits.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 19 16:01:26 2021 UTC