LoginSignup
0
0

More than 1 year has passed since last update.

math.ceil in python

Posted at
  • source
import sys
import math

limit = sys.argv[2]
print(math.ceil(int(sys.argv[1]) / int(limit)))
  • execution
# python3 test.py 2000 1999
2
# python3 test.py 1999 1999
1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0