Joined June 2013
·
Achievements
89 Karma
0 Total ProTip Views
Forked 20
Have an established project that's been forked at least 20 times
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Altruist
Increase developer well-being by sharing at least 20 open source projects
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python 3
Have at least three original repos where Python is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Raven
Have at least one original repo where some form of shell script is the dominant language
The problem is not
math.ceil
, but rather that in Python 2 division between integers. So if in Python 2 you do:182 / 100
you actually get 1. In the second snippetceil
actually gets 1 as argument: it cannot convert the single numbers to floats because it gets the result as argument. You can avoid that (on Python 2) by adding at the top of the file:and you would get what you would expect. This is the default in Python 3:
182 / 100
gives1.82
.