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