ISINFVALUE

Purpose:

Returns data of the same type as its input, with ones wherever the input is infinite (inf), zeros elsewhere.

Syntax:

ISINFVALUE(val)

val

-

A scalar or series test.

Returns:

A scalar, series or table.

Example:

W1: {3, 6, 9, 12, inf, 15, 18}

W2: isnavalue(w1)

 

W2 contains the series {0, 0, 0, 0, 1, 0, 0}.

Example:

isinfvalue(W1) * 100;

 

generates a series with a 100 where there is an inf and 0 otherwise.

Example:

a = isinfvalue(inf);

b = isinf(inf);

 

a == 1

b == {1}

Remarks:

Unlike ISINF, ISINFVALUE returns a scalar for a scalar input.

 

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

 

Use INF to create an infinity value.

See Also:

FINITE

INF

ISEMPTY

ISFINITE

ISINF

ISNAN

NAN