From:             fansyah at yahoo dot com
Operating system: windows 2003 enterprise server
PHP version:      4.3.9
PHP Bug Type:     Math related
Bug description:  error at round() function

Description:
------------
i have fraction 2.135 or 2.155 or 2.175 or 2.195 with around() function
like this example:
around(2.135,2) with result 2.13 it should be 2.14

Reproduce code:
---------------
$b=2.135;
echo round($b,2);

Expected result:
----------------
2.14

Actual result:
--------------
2.13

-- 
Edit bug report at http://bugs.php.net/?id=30729&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30729&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30729&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30729&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30729&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30729&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30729&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30729&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30729&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30729&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30729&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30729&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30729&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30729&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30729&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30729&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30729&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30729&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30729&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30729&r=mysqlcfg

Reply via email to