<div dir="ltr"><div><div>I am writing a simple program based off an ipo chart that I did correctly. I need to use ceil but I keep getting an error saying ceil is not defined. I did import math, I think. I am using 3.2.3 and I imported this way...<br>
<br>>>> import math<br>>>> math.pi<br>3.141592653589793<br>>>> math.ceil(math.pi)<br>4<br>>>> math.floor(math.pi)<br>3<br><br></div>... but I get the error when using ceil...<br><br>pepsticks = ceil(peplength / StickLength)<br>
Traceback (most recent call last):<br> File "<pyshell#19>", line 1, in <module><br> pepsticks = ceil(peplength / StickLength)<br>NameError: name 'ceil' is not defined<br><br></div>Thanks for the help!<br>
</div>