RosettaCodeData/Task/Infinity/Nemerle/infinity.nemerle

5 lines
183 B
Plaintext

def posinf = double.PositiveInfinity;
def a = IsInfinity(posinf); // a = true
def b = IsNegativeInfinity(posinf); // b = false
def c = IsPositiveInfinity(posinf); // c = true