|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-30 23:04 UTC] phristen at yahoo dot com
[2010-11-02 03:51 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2010-11-02 03:51 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
Description: ------------ I was testing long strings of numbers against an IF statement (see test) script and it was outputting information which was not true. Test script: --------------- This works: $o = 33; if ($o >= 29 && $o <= 32) { echo "true"; } else { echo "false"; } This does not work: $o = 336571324099282374385465584513479344133; if ($o >= 336571324099282374385465584513479344129 && $o <= 336571324099282374385465584513479344132) { echo "true"; } else { echo "false"; } Expected result: ---------------- In the working example, the output should be false. This is working as expected. In the non-working example, the output should be false. However, it is returning true.