[<<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 be converted 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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson