notebook.community
Edit and run
In [1]: import math
import math
In [2]: a = (-2.1, -2., -1.9, -1.1, -1., -.9, -.1, 0, .1, .9, 1., 1.1, 1.9, 2., 2.1,)
a = (-2.1, -2., -1.9, -1.1, -1., -.9, -.1, 0, .1, .9, 1., 1.1, 1.9, 2., 2.1,)
In [3]: for x in a: print(x, math.ceil(x))
for x in a: print(x, math.ceil(x))
-2.1 -2 -2.0 -2 -1.9 -1 -1.1 -1 -1.0 -1 -0.9 0 -0.1 0 0 0 0.1 1 0.9 1 1.0 1 1.1 2 1.9 2 2.0 2 2.1 3