roundup()

Rounds the given number upward to an integer.

For positive numbers, it behaves like the ceil function.

For negative numbers, it behaves like the floor function.

Syntax

roundup(value)

Parameters

Parameter Type Description
value Number Numeric value to round up.

Return Value

Examples

roundup(3.2);  // returns 4
roundup(3.0);  // returns 3
roundup(-1.2); // returns -2

See also

round
roundup
floor
ceil
trunc
center
centerex