abch624 Posted June 17, 2009 Share Posted June 17, 2009 Hi Guys, I have a problem as per bellow: $page = $nume / $limit; Now if $nume is 12 and $limit is 5 this will return 2.4 but I would like it to return 3. an other example would be if $nume is 16 and $limit is 5 this will return 3.2 but I want it to return 4. Any way I can do this? Cheers - Zahid Link to comment https://forums.phpfreaks.com/topic/162628-solved-php-division-problem/ Share on other sites More sharing options...
rhodesa Posted June 17, 2009 Share Posted June 17, 2009 http://us2.php.net/ceil Link to comment https://forums.phpfreaks.com/topic/162628-solved-php-division-problem/#findComment-858317 Share on other sites More sharing options...
abch624 Posted June 17, 2009 Author Share Posted June 17, 2009 Cheers. I just couldnt find anything Link to comment https://forums.phpfreaks.com/topic/162628-solved-php-division-problem/#findComment-858319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.