Skip to main content

ROUNDUP

ROUNDUP(realvalue)

realvalueThe floating-point value to round.
Return:ROUNDUP returns a single integer value.

The ROUNDUP function returns the rounded integer of the realvalue by rounding any decimal portion to the next larger integer value, regardless of sign.

Example:

SomeRealValue := 3.14159;
INTEGER4 MyVal := ROUNDUP(SomeRealValue); // MyVal is 4

SomeRealValue := -3.9;
INTEGER4 MyVal := ROUNDUP(SomeRealValue); // MyVal is -4

See Also: ROUND, TRUNCATE