Function: int

Syntax

int (<num>)

Type

numeric

Returns

The truncated integer value.

Parameters

Examples

The following returns the value 5.

numeric i = int(5)

The following returns the value 5.

i = int(5.01)

The following returns the value 5.

i = int(5.9)

The following returns the value -5.

i = int(-5.9)

See Also

Functions:

nint (numeric), uint (numeric)