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