To round up to the nearest whole number in an absolute sense, use ceil if the number is positive and floor if the number is smaller than 0 . The following function rounds numbers up to the closest integer. Or, use an extension function ( 6.3. roundUpAbs ).