lalabored Posted April 19, 2008 Share Posted April 19, 2008 If I have a number like this... 1.67785581773E+12 is there a function to change it back to the way it was before as a normal number without the E or just make me able to enter it into MySql without the E... Link to comment https://forums.phpfreaks.com/topic/101802-a-function-to-convert-exponent-things/ Share on other sites More sharing options...
Fadion Posted April 19, 2008 Share Posted April 19, 2008 Take a look here for some examples using printf(). Probably u'll find what u need. Link to comment https://forums.phpfreaks.com/topic/101802-a-function-to-convert-exponent-things/#findComment-520912 Share on other sites More sharing options...
JD* Posted April 19, 2008 Share Posted April 19, 2008 You can also try a round(), which will accept the number and a digit limit. Link to comment https://forums.phpfreaks.com/topic/101802-a-function-to-convert-exponent-things/#findComment-520940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.