def __eq__(self, other):
if not isinstance(other, EngNumber):<EOL><INDENT>other = EngUnit(str(other))<EOL><DEDENT>if self.unit != other.unit:<EOL><INDENT>raise AttributeError('<STR_LIT>')<EOL><DEDENT>return self.eng_num == other.eng_num<EOL>
Compare two engineering numbers, with units
:param other: EngNum, float, or int
:return: result