Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Lowbar – The simplest no-nonsense loading bar for Python. Parent comment
What do you mean with "not cleanly"?
bar.update_smooth(i * 100 / 7)
Once i is 7, this will be equal to 100. No matter your rounding mode. You don't need a CS degree for that formula.
There are no comments on this comment yet.
What do you mean with "not cleanly"?
bar.update_smooth(i * 100 / 7)
Once i is 7, this will be equal to 100. No matter your rounding mode. You don't need a CS degree for that formula.