Int Procedure

Truncates a floating-point value to a floating point number representing the largest integer that is less than or equal to dx.

Syntax

[ dResult = ] Int ( dx )

The Int procedure syntax has the following parts:

 

Name

Type

Description

dResult

Double

Result

dx

Val Double

Input Value

Comments

When dx is negative, this procedure returns a value less than or equal to dx.

Example

df = Int(123.456)

! now df is 123

df = Int(-123.456)

! now df is -124

See Also

Abs, Round