Compares this Complex
to another Object.
Object
to be compared. An int
, 0 if obj
is equal to this Complex
; a value less than 0 if this Complex
is less than obj
; and a value greater than 0 if this Complex
is greater than obj
.
If the Object is a Complex
, this function behaves like compareTo(Complex
). Otherwise, it throws a InvalidCastException
(as Complex
objects are comparable only to other Complex
objects).
Exception Type | Condition |
---|---|
InvalidCastException | is thrown if obj is not a Complex object |
Complex Class | Imsl.Math Namespace | Complex.CompareTo Overload List