Doc->Bug #67746 [Opn]: Bugs in built-in functions

From: Date: Sat, 02 Aug 2014 12:37:48 +0000
Subject: Doc->Bug #67746 [Opn]: Bugs in built-in functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186941@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67746&edit=1 ID: 67746 User updated by: jaffar dot abdulla dot aljamry at gmail dot com Reported by: jaffar dot abdulla dot aljamry at gmail dot com Summary: Bugs in built-in functions Status: Open -Type: Documentation Problem +Type: Bug Package: Performance problem Operating System: Linux PHP Version: 5.5.15 Block user comment: N Private report: N New Comment: I have changed Bug Type to "Bug". Previous Comments: ------------------------------------------------------------------------ [2014-08-02 11:38:49] jaffar dot abdulla dot aljamry at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=67746&edit=1

« previous php.bugs (#186941) next »