Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>int()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT()


Syntax:     INT(<expN>)

Purpose:    To convert a numeric expression to an integer by truncating
            all digits to the right of the decimal point.

Argument:   <expN> is a numeric expression to convert to an integer.

Returns:    An integer numeric value.

            INT() does not round the argument expression.

Usage:      INT() is useful in operations where the decimal value
            portion of a number is not needed.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

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


See Also: ROUND()

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