Fixed float issue leading to wrong conversion

During conversion a substraction lead to incorrect floating point
values. The conversion algorithm produced wrong results with these
values, p.ex. 8/5 = 1.60...0 or 8/3 = 2.12...2 in base 3.
The Operation is now done directly with the fraction class avoiding
the floating point issues at least with small numbers.