add getter of rational number for coercion