From: simon dot grenier at hotmail dot com Operating system: windows xp pro sp2 PHP version: 5.1.2 PHP Bug Type: Math related Bug description: mod operation return only integer part of the result
Description: ------------ the mod operation in php return only the integer part of the result. Reproduce code: --------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Grade Activity 3</title> </head> <body> <?php echo 23.8%23; ?> </body> </html> Expected result: ---------------- 0.8 Actual result: -------------- 0 -- Edit bug report at http://bugs.php.net/?id=37150&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37150&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37150&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37150&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37150&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37150&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37150&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37150&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37150&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37150&r=support Expected behavior: http://bugs.php.net/fix.php?id=37150&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37150&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37150&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37150&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37150&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37150&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37150&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37150&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37150&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37150&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37150&r=mysqlcfg
