INT

Purpose:

Macro. Calculates the integer value of an expression.

Syntax:

INT(val)

val

-

A scalar or series or table.

Returns:

A scalar, series or table.

Expansion:

FLOOR(ARG)

Example:

int(5.73)

 

returns the integer value 5.

Example:

int(W1)

 

returns a new series by applying INT to each value of the W1 series. The data values of this new series will range between -32768 and +32767.

Remarks:

INT does not round to the nearest integer. To round to the nearest integer use ROUND.

 

See CASTINTEGER to convert a single value to an integer.

See Also:

CASTINTEGER

CEILING

FLOOR

ROUND