2017-06-26 04:47:00 +01:00
|
|
|
# detect how many bits of precision the floating point implementation has
|
|
|
|
|
|
|
|
try:
|
|
|
|
float
|
|
|
|
except NameError:
|
|
|
|
print(0)
|
|
|
|
else:
|
2020-03-23 02:26:08 +00:00
|
|
|
if float("1.0000001") == float("1.0"):
|
2017-06-26 04:47:00 +01:00
|
|
|
print(30)
|
2020-03-23 02:26:08 +00:00
|
|
|
elif float("1e300") == float("inf"):
|
2017-06-26 04:47:00 +01:00
|
|
|
print(32)
|
|
|
|
else:
|
|
|
|
print(64)
|