To(double.nan));  // =&gt; 0
print(double.infinity.compareTo(double.nan)); // =&gt; -1

// -0.0, and NaN comparison operators have rules imposed by the IEEE
// standard.
print(-0.0 == 0.0); // =&gt; true
print(double.nan == double.nan);  // =&gt; false
print(double.infinity &lt; double.nan);  // =&gt; false
print(double.nan &lt; double.infinity);  // =&gt; false
print(double.nan == double.infinity);  // =&gt; false
</code></pre>
    </section>
    
    <section class="summary source-code" id="source">
     