number-to-u8

xod/bits/number-to-u8

Converts number to a 8-bit unsigned integer presented as one byte. An input for the the conversion should be between 0.00 and 255.00.
number-to-u8
@/number-to-u8
Converts number to a 8-bit unsigned integer presented as one byte. An input for the the conversion should be between 0.00 and 255.00.
INnumber
number-to-u8
OUT
IN
OUTbyte

C++ implementation

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