Anonymous user
Infinity: Difference between revisions
Added Nemerle
(Added Nemerle) |
|||
Line 506:
Infinity
</pre>
=={{header|Nemerle}}==
Both single and double precision floating point numbers support PositiveInfinity, NegativeInfinity and NaN.
<lang Nemerle>def posinf = double.PositiveInfinity;
def a = IsInfinity(posinf); // a = true
def b = IsNegativeInfinity(posinf); // b = false
def c = IsPositiveInfinity(posinf); // c = true</lang>
=={{header|OCaml}}==
|