EchoFool Posted February 3, 2008 Share Posted February 3, 2008 I have a format of a number like this: number_format($number,5); to put it to 5 decimal places. Now the problem is say the number is over 1000 it puts a comma: 1,000.12345 which then crashes my query. How can i make it not add a number format with the comma but still keep it 5 decimal places? Quote Link to comment https://forums.phpfreaks.com/topic/89209-solved-help-with-numbers/ Share on other sites More sharing options...
pocobueno1388 Posted February 3, 2008 Share Posted February 3, 2008 Have you checked the manual on number_format()? It shows you how to do it in one of the examples. Quote Link to comment https://forums.phpfreaks.com/topic/89209-solved-help-with-numbers/#findComment-456802 Share on other sites More sharing options...
EchoFool Posted February 3, 2008 Author Share Posted February 3, 2008 oops! good find thankyou Quote Link to comment https://forums.phpfreaks.com/topic/89209-solved-help-with-numbers/#findComment-456806 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.