How do I interpret a uint32 as a float32 using NumPy?

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.

python
numpy
asked on Stack Overflow Feb 8, 2020 by epsilon_j

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0