[Mono-devel-list] Sorry, here is the file I told about in my last mail

yoros at wanadoo.es yoros at wanadoo.es
Thu Mar 6 14:41:37 EST 2003


-- 
Pedro Martinez Juliá
\  yoros at terra.es
)|    yoros at wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC
-------------- next part --------------
using System;

public class EntryPoint {

	public static void Main (string[] args) {

		double a = Double.NaN;
		double b = 1.0;

		if (a == a)
			Console.WriteLine("NAN == NAN");
		if (a < a)
			Console.WriteLine("NAN < NAN");
		if (a > a)
			Console.WriteLine("NAN > NAN");
		if (a <= a)
			Console.WriteLine("NAN <= NAN");
		if (a >= a)
			Console.WriteLine("NAN >= NAN");

		if (a == b)
			Console.WriteLine("NAN == 1.0");
		if (a < b)
			Console.WriteLine("NAN < 1.0");
		if (a > b)
			Console.WriteLine("NAN > 1.0");
		if (a <= b)
			Console.WriteLine("NAN <= 1.0");
		if (a >= b)
			Console.WriteLine("NAN >= 1.0");

		if (b == a)
			Console.WriteLine("1.0 == NAN");
		if (b < a)
			Console.WriteLine("1.0 < NAN");
		if (b > a)
			Console.WriteLine("1.0 > NAN");
		if (b <= a)
			Console.WriteLine("1.0 <= NAN");
		if (b >= a)
			Console.WriteLine("1.0 >= NAN");

	}

}


More information about the Mono-devel-list mailing list