|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-28 16:44 UTC] derick@php.net
[2003-05-28 17:20 UTC] david at ewebdevelopers dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
$num = -1.3322676295502E-015; echo number_format($num, 2, '.', ','); if(((float) number_format(($num, 2,'.', ',')) == 0){ echo 'true'; } number_format should not evaluate to -0.00 should evaluate to 0.00 because there is no such thing as -0;