Converts 32-bit unsigned integer presented as four bytes to a number. A result of the conversion will be between 0.00 and 4294967000.00.
u32-to-number
@/u32-to-number
Converts 32-bit unsigned integer presented as four bytes to a number. A result of the conversion will be between 0.00 and 4294967000.00.
node {
void evaluate(Context ctx) {
uint32_t b3 = getValue<input_B3>(ctx);
uint32_t b2 = getValue<input_B2>(ctx);
uint32_t b1 = getValue<input_B1>(ctx);
uint32_t b0 = getValue<input_B0>(ctx);
uint32_t num = ((b3 << 24) | (b2 << 16) | (b1 << 8) | b0);
Number result = (Number)num;
emitValue<output_OUT>(ctx, result);
}
}
B3 | B2 | B1 | B0 | OUT |
FFh | FFh | FFh | FFh | 4294967295.00 |
07h | 6Ch | AFh | 10h | 124563216.00 |
00h | 00h | 00h | 00h | 0.00 |