How to convert fractions to percents and decimals?