2017-06-25 23:47:00 -04:00
|
|
|
# detect how many bits of precision the floating point implementation has
|
|
|
|
|
|
|
|
try:
|
|
|
|
float
|
|
|
|
except NameError:
|
|
|
|
print(0)
|
|
|
|
else:
|
2021-03-15 09:57:36 -04:00
|
|
|
if float("1.0000001") == float("1.0"):
|
2017-06-25 23:47:00 -04:00
|
|
|
print(30)
|
2021-03-15 09:57:36 -04:00
|
|
|
elif float("1e300") == float("inf"):
|
2017-06-25 23:47:00 -04:00
|
|
|
print(32)
|
|
|
|
else:
|
|
|
|
print(64)
|