in reply to How do I find if anything was removed from using the int or sprintf function?
$pages = ($total- ($remainder = $total % $perpage) )/$perpage; $pages++ if $remainder; [download]