ID: 25087 Updated by: [EMAIL PROTECTED] Reported By: flyruns at hotmail dot com Status: Bogus Bug Type: Unknown/Other Function Operating System: windows 2000 advanced server PHP Version: 4.3.2 New Comment:
(Restored this comment due to database got corrupted..) For the record (for anyone who looks up this "bug" in the future): % (The modulous operator) is an integer operator. Using an integer operator with float values will simply get those float values truncated to integers. Ergo: 27 % 13.5 gets turned into 27 % 13, hence the result value of 1 is correct. Previous Comments: ------------------------------------------------------------------------ [2003-08-13 22:57:50] flyruns at hotmail dot com Thanks i find it in c is right~ sorry~ ------------------------------------------------------------------------ [2003-08-13 22:50:27] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php .. ------------------------------------------------------------------------ [2003-08-13 22:48:12] flyruns at hotmail dot com Description: ------------ When i use '%' operate when i account can't get my hope; Reproduce code: --------------- <?php echo 27%13;// =1 echo 27%13.5;// =1 (behove is 0) echo 27%13.9;// =1 (behove is 13.1) ?> Expected result: ---------------- account right; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25087&edit=1