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 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). Link to comment https://forums.phpfreaks.com/topic/216983-sending-things-though-php/#findComment-1127058 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.