converting fraction to decimal and vice versa