Prevent multiple decimals in decimal numbers in calculator