projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-05-28 Vladimir Vukicevic <vladimir@pobox.com>
[mono.git]
/
mono
/
tests
/
bitconverter.cs
1
using System;
2
3
namespace Test {
4
5
public class Test {
6
public static int Main() {
7
byte[] rep;
8
double d = 5.0;
9
10
rep = BitConverter.GetBytes (d);
11
double res = BitConverter.ToDouble (rep, 0);
12
#if DEBUG
13
Console.WriteLine ("{0} {1} {2} {3} {4} {5} {6} {7}",
14
rep [0], rep [1], rep [2], rep [3], rep [4],
15
rep [5], rep [6], rep [7]);
16
#endif
17
if (d != res)
18
return 1;
19
return 0;
20
}
21
}
22
}