#24330 [NEW]: bug in ABS()
| From: | vm at color-pro dot com | Date: | Wed, 25 Jun 2003 11:53:02 +0000 |
| Subject: | #24330 [NEW]: bug in ABS() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-42476@lists.php.net to get a copy of this message | ||
From: vm at color-pro dot com
Operating system: FreeBSD 4.5
PHP version: 4.3.1
PHP Bug Type: *Math Functions
Bug description: bug in ABS()
Description:
------------
abs not work corectly with <,> operator
Reproduce code:
---------------
if ( abs(0.97 - 0.98) > 0.01 ) echo bed1;
if ( abs(0.07 - 0.08) > 0.01 ) echo bed2;
if ( 0.01 > 0.01 ) echo bed3;
Expected result:
----------------
there must nothing here printing !!!
Actual result:
--------------
bed1 here printing
--
Edit bug report at http://bugs.php.net/?id=24330&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24330&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24330&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24330&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24330&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24330&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24330&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24330&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24330&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24330&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24330&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24330&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24330&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24330&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24330&r=gnused