Search
 
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
Name
3+7 =