From:             t dot steve at ariadne-quatra dot com
Operating system: Windows 2000 Server SP4
PHP version:      5.0.0RC1
PHP Bug Type:     Math related
Bug description:  141.23 - 141.00 = 0.22999999999999 ?

Description:
------------
Subtraction does not work as expected.



Windows 2000 Server

SP4

IIS5

PHP5RC1

Reproduce code:
---------------
$result=141.23-141.00;

echo $result;



(or 

$result=141.23-141;

echo $result;

 - same result)

Expected result:
----------------
0.23

Actual result:
--------------
0.22999999999999

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

Reply via email to