Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python rounding numbers to n digits

def roundTraditional(val,digits):
   return round(val+10**(-len(str(val))-1), digits)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #rounding #numbers #digits
ADD COMMENT
Topic
Name
5+5 =