2017-03-23 23:54:10 +11:00
|
|
|
# test the math functions that return ints, with very large results
|
|
|
|
|
|
|
|
try:
|
|
|
|
import math
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
2017-06-08 14:00:57 +10:00
|
|
|
raise SystemExit
|
2017-03-23 23:54:10 +11:00
|
|
|
|
|
|
|
for fun in (math.ceil, math.floor, math.trunc):
|
|
|
|
for x in (-1e25, 1e25):
|
2021-03-15 19:27:36 +05:30
|
|
|
print("%.3g" % fun(x))
|