I am looking for the Python equivalent of Java\'s Float.floatToBits.
Float.floatToBits
I found this Python: obtain & manipulate (as integers) bit patterns of floats
>>> import ctypes >>> f = ctypes.c_float(173.3125) >>> ctypes.c_int.from_address(ctypes.addressof(f)).value 1127043072