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.
B0byte
Least significant byte
B1byte
Most significant byte
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);
}
}