#42087 [NEW]: PHP 4.3.0/Linux-- Round() Function Problem.
From: kalhan dot d at gmail dot com
Operating system: Linux
PHP version: 4.4.7
PHP Bug Type: *Math Functions
Bug description: PHP 4.3.0/Linux-- Round() Function Problem.
Description:
------------
echo round( .6245, 3 ) // Output 0.625
In the 1st example If the 2nd last value is < 5 and last value is 5 then
it adding one in the last value after rounding.
Opetating Systems:
1. Linux
2. Windows 2000 Professional.
Web Server:
1. Apache 2.0
PHP version:
1. PHP 4.3.0 on Linux
2. PHP 5.2.0 on Windows
Expected result:
----------------
0.624
Actual result:
--------------
0.625
--
Edit bug report at http://bugs.php.net/?id=42087&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42087&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42087&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42087&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42087&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42087&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42087&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42087&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42087&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42087&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42087&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42087&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42087&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42087&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42087&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42087&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42087&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42087&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42087&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42087&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42087&r=mysqlcfg
Thread (2 messages)
- kalhan dot d at gmail dot com