avillanu Posted September 12, 2007 Share Posted September 12, 2007 I have a simple division between two variables but I'd like the output to only show the answer with two decimal places and truncate the rest. Is there anyway to do this? Quote Link to comment https://forums.phpfreaks.com/topic/69077-solved-php-division/ Share on other sites More sharing options...
kireol Posted September 12, 2007 Share Posted September 12, 2007 http://us.php.net/sprintf Quote Link to comment https://forums.phpfreaks.com/topic/69077-solved-php-division/#findComment-347219 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.