DADiSP Worksheet Functions > F - K > ISINFVALUE
Returns data of the same type as its input, with ones wherever the input is infinite (inf), zeros elsewhere.
ISINFVALUE(val)
val |
- |
A scalar or series test. |
A scalar, series or table.
W1: {3, 6, 9, 12, inf, 15, 18}
W2: isinfvalue(w1)
W2 contains the series {0, 0, 0, 0, 1, 0, 0}.
isinfvalue(W1) * 100;
generates a series with a 100 where there is an inf and 0 otherwise.
a = isinfvalue(inf);
b = isinf(inf);
a == 1
b == {1}
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.