0

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.

epsilon_j
  • 325
  • 4
  • 14

0 Answers0