Converts and rounds fractions to other bases