u32-to-number

xod/bits/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.
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.
B2byte
B3byte
Most significant byte
B1byte
B0byte
Least significant byte
u32-to-number
OUT
B2
B3
B1
B0
OUTnumber

C++ implementation

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);
    }
}

Tabular tests

B3B2B1B0OUT
FFhFFhFFhFFh4294967295.00
07h6ChAFh10h124563216.00
00h00h00h00h0.00