Using Numpy, how do I take a uint32 and interpret the bits as a float32?
For example, given
x = numpy.uint32(1234)
I would like to take the raw bit representation of x
(0x000004D2) and interpret it as a float32 (1.729E-42).
Thanks.
User contributions licensed under CC BY-SA 3.0