Several implementations are possible. This is one of them although I didn't count for negative numbers.

Code:
Function Ceil Global Number n Returns Integer
    If (Integer(n) = n) Function_Return n
    Function_Return (Integer(n)+1)    
End_Function