Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fmtnumber(num):
- num = "%.8f" % (num)
- num = num.rstrip('0')
- if num[-1] == '.':
- num = num[:-1]
- return num
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement