[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|             CEILING             |
+---------------------------------+
CEILING(<expN>)

-----------------------------------
Returns nearest integer greater than or equal to <expN>.
Return value - Numeric
-----------------------------------

This function rounds all positive numbers with a fractional portion up
to the next highest integer.  CEILING() returns the integer portion of a
negative number with a fractional portion.

+---------------------------------+
|             Examples            |
+---------------------------------+
STORE  10.1 TO num1
STORE -10.9 TO num2
STORE  10.0 TO num3
STORE -10.0 TO num4

? CEILING(num1)

? CEILING(num2)

? CEILING(num3)

? CEILING(num4)

-----------------------------------

See Also:  FLOOR(), ROUND()

-----------------------------------

See Also: FLOOR() ROUND()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson