Num decimal places (fix)

Fixed version of Pull Request #4
Now "Reset number of decimal places" works correctly.