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.
node {
void evaluate(Context ctx) {
int8_t byte = getValue<input_IN>(ctx);
Number result = (Number)byte;
emitValue<output_OUT>(ctx, result);
}
}
IN | OUT |
7Fh | 127.00 |
80h | -128.00 |
00h | 0.00 |
FFh | -1.00 |