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? 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 Link to comment https://forums.phpfreaks.com/topic/69077-solved-php-division/#findComment-347219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.