DADiSP Worksheet Functions > Function Categories > Query Functions > FINITE
Returns 1 for each element that is not infinite (inf) or NA (nan).
FINITE(series)
series |
- |
A series to test. |
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.
a = {1, 2, inf, nan};
b = 5;
c = {};
finite(a) == {1, 1, 0, 0}
finite(b) == {1}
finite(c) == {}
FINITE always returns a series.
FINITE returns an empty series if the input is an empty series.