Calculation of Fraction with Significant Digits