ID: 46400 Updated by: [EMAIL PROTECTED] Reported By: David dot Rolli at bl dot ch -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows XP Pro, SP2 PHP Version: 5.2.6 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. PLEASE, search the bug database before you submit a bug report. This has actually been fixed already, IIRC. Previous Comments: ------------------------------------------------------------------------ [2008-10-27 10:55:19] David dot Rolli at bl dot ch Description: ------------ I want to outpu my floating number with 13 digits but not in scientific notation - this just doesn't work with certain numbers (see code). Reproduce code: --------------- <?php ini_set("precision", 14); $a = 123456789012; $b = 123456789012.0; $c = 12345678901203; $d = 1234567890123.0; $e = 1225099800; $f = 1225099800000; $h = 1225099800001; echo('$a: ' . $a. "<BR>"); // -> 123456789012 echo('$b: ' . $b. "<BR>"); // -> 123456789012 echo('$c: ' . $c. "<BR>"); // -> 1234567890123 echo('$d: ' . $d. "<BR>"); // -> 1234567890123 echo('$e: ' . $e. "<BR>"); // -> 1225099800 echo('$f: ' . $f. "<BR>"); // -> 1.2250998E+12 !!! echo('$h: ' . $h. "<BR>"); // -> 1225099800001 !!! ?> Expected result: ---------------- 123456789012 123456789012 1234567890123 1234567890123 1225099800 1225099800000 1225099800001 Actual result: -------------- 123456789012 123456789012 1234567890123 1234567890123 1225099800 12250998E+12 1225099800001 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46400&edit=1