realvalue | The 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 MyVal1 := ROUNDUP(SomeRealValue); // MyVal is 4 SomeRealValue2 := -3.9; INTEGER4 MyVal2 := ROUNDUP(SomeRealValue2); // MyVal is -4 OUTPUT(MyVal1); OUTPUT(MyVal2);