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 Quote Link to comment 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! Quote Link to comment 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. 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.