Function Int() Foundation
Converts a numeric value to an integer numeric value.
Syntax
Int( <nExpression> ) --> nInteger
Parameters
<nExpression>
<nExpression> is a numeric expression which is converted to an integer value.
Return
Int() returns an integer numeric value.
Description
The numeric function Int() converts a numeric value to an integer numeric value by truncating any decimal places. Int() is used when a number should have no decimal places.
Examples
// The example shows various results of the function Int()
PROCEDURE Main
? Int(20.00) // result: 20
? Int(.55555) // result: 0
? Int(-999.99) // result: -999
RETURN
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.