is-nan

xod/math/is-nan

Determines if the given number is a NaN value.
is-nan
@/is-nan
Determines if the given number is a NaN value.
INnumber
is-nan
OUT
IN
OUTboolean

C++ implementation

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

Tabular tests

INOUT
0false
10false
732.123false
-732.123false
NaNtrue
Inffalse
-Inffalse