I am getting 4 bytes of data through an interface(Bluetooth, List). The data is representing IEEE 754 float (e.g. 0x3fd0a3d7
, which represents approximately 1.63
as a binary32 float
)
Is there a way in dart lang to convert / type-pun this to float and then double? Something like intBitsToFloat
in Java. Couldn't find anything. Or do I just have to write the IEEE 754 parsing myself?