I have a 4 byte array I need to convert into a float. The python code to convert the array looks like this:
import struct
import codecs
byteArray = [125, 29, 2, 64]
hexfloat = ''.join(format(x, '02x') for x in byteArray)
print(struct.unpack('<f', codecs.decode(hexfloat, 'hex_codec'))[0])
Should return this: 2.0330498218536377
Do you know the dart code equivalent?