convert float to binary in python simple way code example
Example: python converting float to binary
import bitstring
f1 = bitstring.BitArray(float=1.0, length=32)
print(f1.bin)
import bitstring
f1 = bitstring.BitArray(float=1.0, length=32)
print(f1.bin)