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 5.2 . The Guide To CA-Clippe - <b>int()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 INT()
 Convert a numeric value to an integer
------------------------------------------------------------------------------
 Syntax

     INT(<nExp>) --> nInteger

 Arguments

     <nExp> is a numeric expression to convert to an integer.

 Returns

     INT() returns an integer numeric value.

 Description

     INT() is a numeric function that converts a numeric value to an integer
     by truncating--not rounding--all digits to the right of the decimal
     point.  INT() is useful in operations where the decimal portion of a
     number is not needed.

 Examples

     .  These examples demonstrate the results of various invocations
        of the INT() function:

        ? INT(100.00)               // Result: 100
        ? INT(.5)                   // Result: 0
        ? INT(-100.75)              // Result: -100

 Files:  Library is CLIPPER.LIB.

See Also: ROUND()

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