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? Quote Link to comment Share on other sites More sharing options...
Baabu Posted March 10, 2008 Share Posted March 10, 2008 can you post some of the code ? Quote Link to comment 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?>"> Quote Link to comment 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/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.