## Convert floating to binary in Python

In this Python program, we will have a look at “How to convert floating point decimal number to binary number?” Python Program to Convert floating to binary def float_bin(number, places = 3): whole, dec = str(number).split(“.”) whole = int(whole) dec = int (dec) res = bin(whole).lstrip(“0b”) + “.” for x in range(places): whole, dec = …