The int function

Description

The int function returns the integral part of the parameter passed to it. The type of the value returned by this function is always real. NOTE: The return type is real instead of one of the integral types because the integral part of the parameter may be too big to fit in any of the integral types, and you can always use the built-in function trunc to convert the return value from real to integer.

Parameter

The int function's only parameter is the expression of real type whose integral part is to be returned.

Example

   int(7.234)   returns  7.0

Portability

Operating Systems: All
Standard Pascal: No