is-finite

koadrobot/math/is-finite

If Number is Finite, Return is True.
is-finite
@/is-finite
If Number is Finite, Return is True.
INnumber
is-finite
OUT
IN
OUTboolean
To use the node in your project you should have the koadrobot/math library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

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