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
  • 507
  • 2
  • 11

0 Answers0