DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python rounding
def round(num): remainder = num - int(num) if remainder >= 0.5: return int(num) + 1 return int(num)
Source by softhunt.net #
PREVIOUS
NEXT
Tagged:
#python
#rounding
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit