how to returns a number rounded to a certain number of decimal places