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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #nearest
ADD COMMENT
Topic
Name
7+6 =