cdm319 Posted March 29, 2009 Share Posted March 29, 2009 Hey, I'm new to these forums, so please excuse me if this should go in the Math sub-forum. I don't think it would, as it's to do more with the echo format than the maths. Anyway, I am performing a simple calculation using PHP, working with user inputted values (numbers, in terms of millions). It works for numbers up to 9,999,999.00 however when it gets to 10 million or above, it gives me an answer in terms of E. Is there any way to get it to simply echo the number in its entirety as opposed to in terms of E? Many Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/151606-echo-ing-large-numbers/ Share on other sites More sharing options...
zizzi0n Posted March 29, 2009 Share Posted March 29, 2009 Could you format it so it is in terms of millions? So that for istance, 6,800,000.00 is equal to 6.8 million. Would that be an ok alternative? Link to comment https://forums.phpfreaks.com/topic/151606-echo-ing-large-numbers/#findComment-796235 Share on other sites More sharing options...
cdm319 Posted March 29, 2009 Author Share Posted March 29, 2009 No, not really, as the numbers are not always rounded off so much. You could have, for instance, 6,873,825 or something. Link to comment https://forums.phpfreaks.com/topic/151606-echo-ing-large-numbers/#findComment-796260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.