Function: nint

Syntax

nint (<num>)

Returns

The nearest (i.e. rounded) integer value.

Parameters

Examples

The following returns the value 5.

numeric i = nint(5)

The following returns the value 5.

i = nint(5.01)

The following returns the value 6.

i = nint(5.5)

The following returns the value 6.

i = nint(5.9)

The following returns the value -6.

i = nint(-5.9)

See Also

Functions:

int (numeric), uint (numeric)