Solving problems with rational numbers in decimal form