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

Returns

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

Examples

Example 1

These expressions return 3.0:

Int(3.2)

Int(3.8)

Example 2

These expressions return -4.0:

Int(-3.2)

Int(-3.8)

See also