DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+5 =
Submit