Fix the case when there is zero or one point after the decimal