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