Compartir a través de


INT( ) Function

Evaluates a numeric expression and returns the integer portion of the expression.

INT(nExpression)

Return Value

Numeric

Parameters

  • nExpression
    Specifies the numeric expression for which INT( ) returns the integer portion.

Example

CLEAR
? INT(12.5)  && Displays 12
? INT(6.25 * 2)  && Displays 12
? INT(-12.5)  && Displays -12
STORE -12.5 TO gnNumber
? INT(gnNumber)  && Displays -12

See Also

Reference

CEILING( ) Function

FLOOR( ) Function

ROUND( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)