class_docstr: Physical quantity: can be a unit of measure, a constant or a generic quantity.
class_docstr_tok: ["Physical","quantity",":","can","be","a","unit","of","measure",",","a","constant","or","a","generic","quantity","."]
docstr: Convert the quantity to another quantity of same dimensions.
  
  Examples
  ========
  
  >>> from sympy.physics.units import speed_of_light, meter, second
  >>> speed_of_light
  speed_of_light
  >>> speed_of_light.convert_to(meter/second)
  299792458*meter/second
  
  >>> from sympy.physics.units import liter
  >>> liter.convert_to(meter**3)
  meter**3/1000
docstr_tok: ["Convert","the","quantity","to","another","quantity","of","same","dimensions",".","Examples","========",">",">",">","from","sympy.physics.units","import","speed_of_light",",","meter",",","second",">",">",">","speed_of_light","speed_of_light",">",">",">","speed_of_light.convert_to","(","meter\/second",")","299792458","*","meter\/second",">",">",">","from","sympy.physics.units","import","liter",">",">",">","liter.convert_to","(","meter","*","*","3",")","meter","*","*","3\/1000"]
code: def convert_to(self, other, unit_system="SI"):
      """
      Convert the quantity to another quantity of same dimensions.
  
      Examples
      ========
  
      >>> from sympy.physics.units import speed_of_light, meter, second
      >>> speed_of_light
      speed_of_light
      >>> speed_of_light.convert_to(meter/second)
      299792458*meter/second
  
      >>> from sympy.physics.units import liter
      >>> liter.convert_to(meter**3)
      meter**3/1000
      """
      from .util import convert_to
  
      return convert_to(self, other, unit_system)
  
imports: from sympy.core.expr import AtomicExpr
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.physics.units.dimensions import _QuantityMapper
  from sympy.physics.units.prefixes import Prefix
label_desc: Use image node_id 13 for calling the Quantity obj's underlying member method code with example usage: obj.convert_to(other, unit_system) and returns: convert_to