This would have been correct for the problem . You can only remove zeros from the end of a decimal.