Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python round to nearest

round_to_nearest = 10
round(22 / round_to_nearest) * round_to_nearest #20
round(26 / round_to_nearest) * round_to_nearest #30
 
PREVIOUS NEXT
Tagged: #python #nearest
ADD COMMENT
Topic
Name
1+6 =