Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python round up

>>> import math

>>> math.ceil(5.2)
6

>>> math.ceil(5)
5

>>> math.ceil(-0.5)
0
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
5+8 =