Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 4
    \$\begingroup\$ sometimes you can get away with n//1+1 instead of ceil but it does mean ceil(n)=n+1 but it should work for all non integer values \$\endgroup\$ Commented Dec 23, 2017 at 20:26
  • \$\begingroup\$ round(x) is (x+.5)//1, +1 byte but the latter starts with a (, and if x is a sum consisting of a constant it can be useful. \$\endgroup\$ Commented Apr 28, 2018 at 5:27
  • \$\begingroup\$ You can use 0--n//1. \$\endgroup\$ Commented Aug 19, 2024 at 0:05