Conversion of decimals to fractions and percents