|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-19 15:23 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 16:00:02 2025 UTC |
Description: ------------ PHP does an miscalculation, ie. (584.04 / 2) / 3.14 is not same as 93 (that calculation returns 93) Reproduce code: --------------- <? $a = 93; $b = 93; $c = 584.04; $d = ($c / 2) / 3.14; if ($a == $b) { echo "a and b matches!\n"; } if ($d == $a) { echo "d and a matches!\n"; } echo "a's value is $a AND d's value is $d"; ?> Expected result: ---------------- a and b matches! d and a matches! a's value is 93 AND d's value is 93 Actual result: -------------- a and b matches! a's value is 93 AND d's value is 93