From: dima at snaiper dot no-ip dot com
Operating system: windows xp
PHP version: 5.0.4
PHP Bug Type: Math related
Bug description: Incorrect abs() result.
Description:
------------
I get rounded value in abs() function.
Reproduce code:
---------------
echo abs(-10.414234005636601);
echo "<br>";
echo abs(-340.1242340053423432423000000000000234324636601);
echo "<br>";
echo abs(-1320.72423000340056366201);
Expected result:
----------------
10.414234005636601
340.1242340053423432423000000000000234324636601
1320.72423000340056366201
Actual result:
--------------
10.4142340056
340.124234005
1320.72423
--
Edit bug report at http://bugs.php.net/?id=33168&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33168&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33168&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33168&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33168&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33168&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33168&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33168&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33168&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33168&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33168&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33168&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33168&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33168&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33168&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33168&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33168&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33168&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33168&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33168&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33168&r=mysqlcfg