python converting float to binary

Solutions on MaxInterview for python converting float to binary by the best coders in the world

showing results for - "python converting float to binary"
Émeric
07 Oct 2018
1import bitstring
2f1 = bitstring.BitArray(float=1.0, length=32)
3print(f1.bin)