krispykreme Posted March 10, 2008 Share Posted March 10, 2008 for instance for 2021200000 it will show like 2.0212E+9 It does this for all large numbers that have 0's at the end and i dont want it to do that is there a php built in function that will keep the original formatting? Link to comment https://forums.phpfreaks.com/topic/95453-php-keeps-making-numbers-into-scientific-notation/ Share on other sites More sharing options...
Baabu Posted March 10, 2008 Share Posted March 10, 2008 can you post some of the code ? Link to comment https://forums.phpfreaks.com/topic/95453-php-keeps-making-numbers-into-scientific-notation/#findComment-488641 Share on other sites More sharing options...
krispykreme Posted March 10, 2008 Author Share Posted March 10, 2008 i guess but it is as simple as it says <?$pmp = @mysql_fetch_array(mysql_query("SELECT crack FROM users12 WHERE id='1';")); $cts2=$pmp[0];?> <input type="text" class="text" size="8" name="crack2" value="<?=$cts2?>"> Link to comment https://forums.phpfreaks.com/topic/95453-php-keeps-making-numbers-into-scientific-notation/#findComment-488650 Share on other sites More sharing options...
krispykreme Posted March 10, 2008 Author Share Posted March 10, 2008 never mind i fixed it using this article guess it is a bug in php on the centOS http://jetlogs.org/2008/02/05/php-problems-with-big-integers-and-scientific-notation/ Link to comment https://forums.phpfreaks.com/topic/95453-php-keeps-making-numbers-into-scientific-notation/#findComment-488678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.