in reply to How can I round up if any decimal place exists?
use constant ROWS_PER_PAGE => 20; my $pageCount = int(($total + ROWS_PER_PAGE - 1) / ROWS_PER_PAGE); [download]