Doc #67746 [NEW]: Bugs in built-in functions

From: Date: Sat, 02 Aug 2014 11:38:50 +0000
Subject: Doc #67746 [NEW]: Bugs in built-in functions
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11406@lists.php.net to get a copy of this message
From: jaffar dot abdulla dot aljamry at gmail dot com Operating system: Linux PHP version: 5.5.15 Package: Performance problem Bug Type: Documentation Problem Bug description:Bugs in built-in functions Description: ------------ --- From manual page: http://www.php.net/function.number-format From manual page: http://php.net/function.ceil From manual page: http://php.net/function.floor --- inappropriate result while using function "number_format", it's changing the value, it should only format number and keep the value same. Test script: --------------- Simple code: $text = "685484585478488466"; echo $text = intval($text); echo "\n"; $text = number_format($text, 0, ".", ""); echo $text; ---------------------------------- Output: 685484585478488466 685484585478488448 Expected result: ---------------- Output: 685484585478488466 685484585478488466 Actual result: -------------- Output: 685484585478488466 685484585478488448 -- Edit bug report at https://bugs.php.net/bug.php?id=67746&edit=1 --

« previous php.doc.bugs (#11406) next »