class_docstr: Class UnitDbl in development.
class_docstr_tok: ["Class","UnitDbl","in","development","."]
docstr: Create a new UnitDbl object.
  
  Units are internally converted to km, rad, and sec.  The only
  valid inputs for units are [m, km, mile, rad, deg, sec, min, hour].
  
  The field UnitDbl.value will contain the converted value.  Use
  the convert() method to get a specific type of units back.
  
  = ERROR CONDITIONS
  - If the input units are not in the allowed list, an error is thrown.
  
  = INPUT VARIABLES
  - value     The numeric value of the UnitDbl.
  - units     The string name of the units the value is in.
docstr_tok: ["Create","a","new","UnitDbl","object",".","Units","are","internally","converted","to","km",",","rad",",","and","sec",".","The","only","valid","inputs","for","units","are","[","m",",","km",",","mile",",","rad",",","deg",",","sec",",","min",",","hour","]",".","The","field","UnitDbl.value","will","contain","the","converted","value",".","Use","the","convert","(",")","method","to","get","a","specific","type","of","units","back",".","=","ERROR","CONDITIONS","-","If","the","input","units","are","not","in","the","allowed","list",",","an","error","is","thrown",".","=","INPUT","VARIABLES","-","value","The","numeric","value","of","the","UnitDbl",".","-","units","The","string","name","of","the","units","the","value","is","in","."]
code: def __init__(self, value, units):
      """
      Create a new UnitDbl object.
  
      Units are internally converted to km, rad, and sec.  The only
      valid inputs for units are [m, km, mile, rad, deg, sec, min, hour].
  
      The field UnitDbl.value will contain the converted value.  Use
      the convert() method to get a specific type of units back.
  
      = ERROR CONDITIONS
      - If the input units are not in the allowed list, an error is thrown.
  
      = INPUT VARIABLES
      - value     The numeric value of the UnitDbl.
      - units     The string name of the units the value is in.
      """
      data = _api.check_getitem(self.allowed, units=units)
      self._value = float(value * data[0])
      self._units = data[1]
  
file_path: matplotlib/lib/matplotlib/testing/jpl_units/UnitDbl.py
imports: import functools
  import operator
  from matplotlib import _api
label_desc: Use image node_id 1 to create a new UnitDbl object  with example: obj = UnitDbl(value, units)