|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-05 20:13 UTC] derick@php.net
[2005-07-05 20:56 UTC] rick at ninjafoo dot com
[2005-07-05 21:34 UTC] helly@php.net
[2005-07-06 10:42 UTC] rick at ninjafoo dot com
[2005-07-06 15:39 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
Description: ------------ 100* certain values is not the same as 10*10* the same value. The following code should produce no output. I see output. Reproduce code: --------------- <?php $value1 = 19.6*100; $value2 = 19.6*10*10; if ($value1 != $value2) { echo 'funny, i thaught 100x was exactly the same as 10x10x....<br>'; echo 'value1='.$value1.', value2='.$value2.','; } ?> Expected result: ---------------- I expect nothing to happen. Actual result: -------------- funny, i thaught 100x was exactly the same as 10x10x.... value1=1960, value2=1960,