Narafir Posted January 21, 2009 Share Posted January 21, 2009 I have written some code that works great. It has an input for a float number, does some math, and returns the results. If the input is 6 digits (999999) the results are returned as they should (float, again). But if the input is more than that i.e. 7 digits (9999999) then the results are something like 1.05271e+006. How can i avoid that and have a number that shows better? (I am fairly new here, so please let me know if I should explain further or provide the code) Link to comment https://forums.phpfreaks.com/topic/141755-e006-help-pls/ Share on other sites More sharing options...
Mchl Posted January 21, 2009 Share Posted January 21, 2009 1.05271e+006 means 1.05271 * 10^6 and it's pretty common way of displaying large numbers. You could try sprintf to force different format. Link to comment https://forums.phpfreaks.com/topic/141755-e006-help-pls/#findComment-742063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.