dean7 Posted October 27, 2010 Share Posted October 27, 2010 Hi all, I've just coded a script for my website which allowed users to send money to a different user which that works fine, as far as I know, but when I send a user some money is becomes like: £1.0,85E,+11 Is there any reason why it changes from normal numbers to that? or is it my script which makes it like that or is it the database? Thanks for any help given Quote Link to comment https://forums.phpfreaks.com/topic/216983-sending-things-though-php/ Share on other sites More sharing options...
Adam Posted October 27, 2010 Share Posted October 27, 2010 That's just the number in 'scientific notation'. You can format it to a more readable value using number_format or sprintf (..with the 'e' type specifier). Quote Link to comment https://forums.phpfreaks.com/topic/216983-sending-things-though-php/#findComment-1127058 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.