compareTo
Compares this value with other after numeric promotion.
Operands use Double precision; large integers may round. NaN compares equal to NaN and above every number. Negative zero compares below positive zero. This total order differs from primitive equality and relational operators involving NaN or signed zero.
Return
-1, 0 or 1 when this value is less than, equal to or greater than other.
Parameters
other
value to compare with.