In Python, unpack can convert Hex string to IEEE754 Float number:
import struct
print(struct.unpack('<f', bytes.fromhex("00000042"))[0]) # 32.0
< represents LITTLE ENDIAN byte order, and f represents Float format.
How to convert Hex string to IEEE754 Float number with Raku?
A possible approach is:
BufBufFor example:
Which gives the same output (32) as the Python example.