float.py 275 B

12345678910111213
  1. # detect how many bits of precision the floating point implementation has
  2. try:
  3. float
  4. except NameError:
  5. print(0)
  6. else:
  7. if float('1.0000001') == float('1.0'):
  8. print(30)
  9. elif float('1e300') == float('inf'):
  10. print(32)
  11. else:
  12. print(64)