class_docstr: Real numbers up to the given precision. 
class_docstr_tok: ["Real","numbers","up","to","the","given","precision","."]
docstr: Convert a real number to rational number. 
docstr_tok: ["Convert","a","real","number","to","rational","number","."]
code: def to_rational(self, element, limit=True):
      """Convert a real number to rational number."""
      return self._context.to_rational(element, limit)
  
imports: from sympy.external.gmpy import SYMPY_INTS
  from sympy.core.numbers import Float
  from sympy.polys.domains.field import Field
  from sympy.polys.domains.simpledomain import SimpleDomain
  from sympy.polys.domains.characteristiczero import CharacteristicZero
  from sympy.polys.domains.mpelements import MPContext
  from sympy.polys.polyerrors import CoercionFailed
  from sympy.utilities import public
label_desc: Use image node_id 21 for calling the RealField obj's underlying member method code with example usage: obj.to_rational(element, limit) and returns: self