1

Is there a way to print a floating point number in binary in Python? Something like

>>> f"{0.5:b}" 
0.1

? The above doesn't work.

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.