chanchelkumar Posted May 20, 2008 Share Posted May 20, 2008 Hi all, Am working with some mathematical calculations in which am getting the result say 219.3256102563 the result is correct, But i want it to displayed as 219.326 (as round it) how we can done it without using the explode function.. any function for this... please help me... thanks in advance.... Link to comment https://forums.phpfreaks.com/topic/106435-solved-get-the-decimal-value-to-round-off/ Share on other sites More sharing options...
rhodesa Posted May 20, 2008 Share Posted May 20, 2008 round() <?php $num = 219.3256102563; print round($num, 3); ?> Link to comment https://forums.phpfreaks.com/topic/106435-solved-get-the-decimal-value-to-round-off/#findComment-545543 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.