i8-to-number

xod/bits/i8-to-number

Converts 8-bit signed integer presented as one byte to a number. A result of the conversion will be between -128.00 and 127.00.
i8-to-number
@/i8-to-number
Converts 8-bit signed integer presented as one byte to a number. A result of the conversion will be between -128.00 and 127.00.
INbyte
i8-to-number
IN
OUT
OUTnumber

C++ implementation

node {
    void evaluate(Context ctx) {
        int8_t byte = getValue<input_IN>(ctx);
        Number result = (Number)byte;
        emitValue<output_OUT>(ctx, result);
    }
}

Tabular tests

INOUT
7Fh127.00
80h-128.00
00h0.00
FFh-1.00