Bug #10727: print((2.3 * 100 % 100) . "<br>\n"); does not print 30 but 29

From: Date: Tue, 08 May 2001 10:24:18 +0000
Subject: Bug #10727: 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-54367@lists.php.net to get a copy of this message
From: d.peereboom-voller@nl.worldonline.com Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Math related Bug description: print((2.3 * 100 % 100) . "&lt;br&gt;\n"); does not print 30 but 29 print((2.3 * 100 % 100) . "<br>\n"); This generated 29 while print((230 % 100) . "<br>\n"); writes 30 as expected -- Edit Bug report at: http://bugs.php.net/?id=10727&edit=1

« previous php.dev (#54367) next »