RosettaCodeData/Task/Infinity/Nemerle/infinity.nemerle

5 lines
183 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def posinf = double.PositiveInfinity;
def a = IsInfinity(posinf); // a = true
def b = IsNegativeInfinity(posinf); // b = false
def c = IsPositiveInfinity(posinf); // c = true