class_docstr: Class UnitDbl in development.
     
class_docstr_tok: ["Class","UnitDbl","in","development","."]
docstr: Compare two UnitDbl's.
  
  = ERROR CONDITIONS
  - If the input rhs units are not the same as our units,
    an error is thrown.
  
  = INPUT VARIABLES
  - rhs    The UnitDbl to compare against.
  
  = RETURN VALUE
  - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
docstr_tok: ["Compare","two","UnitDbl","'s",".","=","ERROR","CONDITIONS","-","If","the","input","rhs","units","are","not","the","same","as","our","units",",","an","error","is","thrown",".","=","INPUT","VARIABLES","-","rhs","The","UnitDbl","to","compare","against",".","=","RETURN","VALUE","-","Returns","-1","if","self","<","rhs",",","0","if","self","==","rhs",",","+1","if","self",">","rhs","."]
code: def __cmp__(self, rhs):
      """Compare two UnitDbl's.
  
      = ERROR CONDITIONS
      - If the input rhs units are not the same as our units,
        an error is thrown.
  
      = INPUT VARIABLES
      - rhs    The UnitDbl to compare against.
  
      = RETURN VALUE
      - Returns -1 if self < rhs, 0 if self == rhs, +1 if self > rhs.
      """
      self.checkSameUnits(rhs, "compare")
      return cmp(self._value, rhs._value)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
label_desc: Use image node_id 6 for calling the UnitDbl obj's underlying member method code with example usage: obj.__cmp__(rhs) and returns: cmp