Welcome to mirror list, hosted at ThFree Co, Russian Federation.

float-pop.cs « tests « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2cb61fc1ba2d699fc62229d0622d35de4bfb3f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;

class Test {

	static double test ()
	{
		return double.NaN;
	}
	
	static int Main()
	{
		ulong u = 3960077;
		ulong f = 1000000;

		for (int i = 0; i < 100; i++)
			test ();
		
		double d = u/(double)f;

		if (d != 3.960077)
			return 1;

		return 0;	
	}
}