is-finite

xod/math/is-finite

Determines if the given number has a finite value, i.e., it is normal, subnormal, or zero, but not infinite or NaN
is-finite
@/is-finite
Determines if the given number has a finite value, i.e., it is normal, subnormal, or zero, but not infinite or NaN
INnumber
is-finite
IN
OUT
OUTboolean

C++ implementation

node {
    void evaluate(Context ctx) {
        auto inValue = getValue<input_IN>(ctx);
        emitValue<output_OUT>(ctx, isfinite(inValue));
    }
}

Tabular tests

INOUT
0true
10true
732.123true
-732.123true
NaNfalse
Inffalse
-Inffalse