C5_INT

 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()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.