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.

extremeaxe5
  • 723
  • 3
  • 13

0 Answers0