pow10

koadrobot/math/pow10

Computes the power of `10` raised to the power exponent `EXP`
pow10
@/pow10
Computes the power of `10` raised to the power exponent `EXP`
10Enumber
pow10
OUT
10E
OUTnumber
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

#pragma XOD dirtieness disable

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    Number exponent = getValue<input_10E>(ctx);
    emitValue<output_OUT>(ctx, pow(10, exponent));
}

Tabular tests

10EOUT
01
110
2100
-10.1
-20.01
NaNNaN
InfInf
-Inf0