Choosing the appropriate form of a rational number