MrXHellboy Posted December 12, 2010 Share Posted December 12, 2010 Hi All, Sometimes after some calculation php may return this: 1.02563125481E+54 But how to make this into 1 number without the E+ etc ?! Cheers Link to comment https://forums.phpfreaks.com/topic/221414-make-a-number-readable/ Share on other sites More sharing options...
MMDE Posted December 12, 2010 Share Posted December 12, 2010 I believe it's a too long number... printf('%0.0f','1.02563125481E+54'); Still this should output it! Link to comment https://forums.phpfreaks.com/topic/221414-make-a-number-readable/#findComment-1146290 Share on other sites More sharing options...
requinix Posted December 12, 2010 Share Posted December 12, 2010 Note that with a number that large, what printf gives you will not be 100% correct. In fact, a lot of it won't be. Link to comment https://forums.phpfreaks.com/topic/221414-make-a-number-readable/#findComment-1146325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.