Here is a simple function. I've tested it and it works.
PHP Code:
<?php
function round_up($num)
{
$exp = explode(".", $num);
$new_num = $exp[0]+1;
echo $new_num;
}
echo round_up(5.06);
?>
This will output:
6
You can add a preg_match() to the function to make sure that only numbers will work. (i.e. Text.text won't be turned through the function)