Bug #10727 Updated: print((2.3 * 100 % 100) . "<br>\n"); does not print 30 but 29
| From: | hholzgra@php.net | Date: | Tue, 08 May 2001 10:38:02 +0000 |
| Subject: | Bug #10727 Updated: print((2.3 * 100 % 100) . "<br>\n"); does not print 30 but 29 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54370@lists.php.net to get a copy of this message | ||
ID: 10727
Updated by: hholzgra
Reported By: d.peereboom-voller@nl.worldonline.com
Old-Status: Open
Status: Bogus
Bug Type: Math related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:
this is a general problem with decimal
calculations on binary processors
and not related to php itself
Previous Comments:
---------------------------------------------------------------------------
[2001-05-08 06:24:18] d.peereboom-voller@nl.worldonline.com
print((2.3 * 100 % 100) . "<br>n");
This generated 29
while
print((230 % 100) . "<br>n");
writes 30 as expected
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10727&edit=2