number-to-u16

xod/bits/number-to-u16

Converts number to a 16-bit unsigned integer presented as 2 bytes. An input for the the conversion should be between 0.00 and 65535.00.
number-to-u16
@/number-to-u16
Converts number to a 16-bit unsigned integer presented as 2 bytes. An input for the the conversion should be between 0.00 and 65535.00.
INnumber
number-to-u16
IN
B1
B0
B0byte
Least significant byte
B1byte
Most significant byte

C++ implementation

node {
    void evaluate(Context ctx) {
        uint16_t input = getValue<input_IN>(ctx);
        uint8_t b1 = input >> 8;
        uint8_t b0 = input;
        emitValue<output_B0>(ctx, b0);
        emitValue<output_B1>(ctx, b1);
    }
}