Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>ceiling()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CEILING()
 Rounds up to the next integer
------------------------------------------------------------------------------
 Syntax

     CEILING(<nValue>) --> nLargerInteger

 Argument

     <nValue>  Designates the number for which the next-largest integer
     is determined.

 Returns

     CEILING() returns the next-largest integer to the one that is passed as
     a parameter.

 Description

     CEILING() returns the next-largest integer to the one passed as a
     parameter.  This applies to positive and negative numbers.

 Example

     Show the next-largest integer (including positive and negative numbers):

     ? CEILING(1.9)            // Result:   2
     ? CEILING(1.1)            // Result:   2
     ? CEILING(0.9)            // Result:   1
     ? CEILING(-0.1)           // Result:   0
     ? CEILING(-0.9)           // Result:   0
     ? CEILING(-1.1)           // Result:-1


See Also: FLOOR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson