DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+1 =
Submit