smiley_kool Posted April 10, 2008 Share Posted April 10, 2008 hi.. can someone temme how to truncate zero(0) after a decimal point. ???. eg: 50.0 , it should display 50 i need to implement this logic in php.. its urgent Quote Link to comment https://forums.phpfreaks.com/topic/100434-how-to-truncate-zero0-after-decimal-point/ Share on other sites More sharing options...
Daniel0 Posted April 10, 2008 Share Posted April 10, 2008 First of all, your question is not "urgent"... Various Things not to do: a) DON'T Describe your question or problem as urgent, super important, must have by tommorrow etc... The experts answering your questions are contributing their time and expertise for Free. If you have an urgent problem and need priority help, consider advertising in the Freelancing forum. To get the decimals off you can use round(), ceil() or floor(). Quote Link to comment https://forums.phpfreaks.com/topic/100434-how-to-truncate-zero0-after-decimal-point/#findComment-513614 Share on other sites More sharing options...
smiley_kool Posted April 10, 2008 Author Share Posted April 10, 2008 thank u.. First of all, your question is not "urgent"... Various Things not to do: a) DON'T Describe your question or problem as urgent, super important, must have by tommorrow etc... The experts answering your questions are contributing their time and expertise for Free. If you have an urgent problem and need priority help, consider advertising in the Freelancing forum. To get the decimals off you can use round(), ceil() or floor(). Quote Link to comment https://forums.phpfreaks.com/topic/100434-how-to-truncate-zero0-after-decimal-point/#findComment-513616 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.