DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
round down decimal python
import math val = 3.14 math.floor(val) # rounds down --> 3 math.ceil(val) # rounds up val --> 4
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#decimal
#python
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit