tml">operator&lt;</a> and <a href="dart-core/num/operator_greater.html">operator&gt;</a>. For example,
IEEE doubles impose that <code>0.0 == -0.0</code> and all comparison operations on
NaN return false.</p>
<p>This function imposes a complete ordering for doubles. When using
<code>compareTo</code> the following properties hold:</p><ul><li>All NaN values are considered equal, and greater than any numeric value.</li><li>-0.0 is less than 0.0 (and the integer 0), but greater than any non-zero
 negative value.