Int

Description

Gets the largest whole number less than or equal to a number.

Syntax

Int ( n )

Argument

Description

n

The number for which you want the largest whole number that is less than or equal to it


Return value

The datatype of n. Returns the largest whole number less than or equal to n.

Examples

These expressions return 3.0:

Int(3.2)

Int(3.8)

These expressions return -4.0:

Int(-3.2)

Int(-3.8)

See also

Ceiling

Integer

Round

Truncate