ID: 31889 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4.3.10 New Comment:
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 read your code again Previous Comments: ------------------------------------------------------------------------ [2005-02-08 22:49:30] [EMAIL PROTECTED] Description: ------------ A string which holds a number which is less than 0 but greater than -1 and does not have a leading 0, is not converted to a number correctly, it comes back as 0. Reproduce code: --------------- $str = '-.55'; echo $str."\n".(int)$str; Expected result: ---------------- -.55 -.55 Actual result: -------------- -.55 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31889&edit=1