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>floor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FLOOR()
 Rounds down to the next integer
------------------------------------------------------------------------------
 Syntax

     FLOOR(<nValue>) --> nSmallerInteger

 Argument

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

 Returns

     FLOOR() returns the next-smaller integer of the one passed as a
     parameter.

 Description

     FLOOR() always returns the next-smaller integer of the one passed as a
     parameter.  This applies to positive and negative numbers.

 Example

     Show the next-smaller integer for positive and negative numbers:

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


See Also: CEILING()

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