is-norm

koadrobot/math/is-norm

If Number is normal pozitive or negative, Return is True. Else If Number is Inf, Zero, NaN then result is false.
is-norm
@/is-norm
If Number is normal pozitive or negative, Return is True. Else If Number is Inf, Zero, NaN then result is false.
INnumber
is-norm
IN
OUT
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, isnormal(inValue));
}

Tabular tests

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