DADiSP Worksheet Functions > Function Categories > Query Functions > ISFINITE

 

ISFINITE

Purpose:

Returns 1 for each element that is not infinite (inf) or NA (nan).

Syntax:

ISFINITE(series)

series

-

A series to test.

Returns:

A series or array where each element is 1 where the input series or array is not inf or nan and 0 where the input series or array is inf or nan.

Example:

a = {1, 2, inf, nan};

b = 5;

c = {};

 

isfinite(a) == {1, 1, 0, 0}

isfinite(b) == {1}

isfinite(c) == {}

Remarks:

ISFINITE always returns a series.

 

ISFINITE returns an empty series if the input is an empty series.

 

ISFINITE is identical to FINITE

See Also:

INF

ISEMPTY

ISINF

ISNAN