Int()

INT()

Return the integer port of a numeric value.

Syntax

      INT( <nNumber> ) --> <nIntNumber>

Arguments

<nNumber> Any numeric value.

Returns

<nIntNumber> The integer portion of the numeric value.

Description

This function converts a numeric expression to an integer. All decimal digits are truncated. This function does not round a value upward or downward; it merely truncates a number at the decimal point.

Examples

      SET DECIMAL TO 5
      ? INT( 632512.62541 )
      ? INT( 845414111.91440 )

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ROUND(), STRZERO()

3 responses to “Int()

  1. Pingback: Harbour All Functions – I | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

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.