-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathNumeric.cs
More file actions
80 lines (70 loc) · 1.5 KB
/
Numeric.cs
File metadata and controls
80 lines (70 loc) · 1.5 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
class C
{
sbyte xsbyte;
byte xbyte;
short xshort;
ushort xushort;
int xint;
uint xuint;
long xlong;
ulong xulong;
char xchar;
float xfloat;
double xdouble;
decimal xdecimal;
// Verify conversions
void M()
{
xshort = xsbyte;
xint = xsbyte;
xlong = xsbyte;
xfloat = xsbyte;
xdouble = xsbyte;
xdecimal = xsbyte;
xshort = xbyte;
xushort = xbyte;
xint = xbyte;
xuint = xbyte;
xlong = xbyte;
xulong = xbyte;
xfloat = xbyte;
xdouble = xbyte;
xdecimal = xbyte;
xint = xshort;
xlong = xshort;
xfloat = xshort;
xdouble = xshort;
xdecimal = xshort;
xint = xushort;
xuint = xushort;
xlong = xushort;
xulong = xushort;
xfloat = xushort;
xdouble = xushort;
xdecimal = xushort;
xlong = xint;
xfloat = xint;
xdouble = xint;
xdecimal = xint;
xlong = xuint;
xulong = xuint;
xfloat = xuint;
xdouble = xuint;
xdecimal = xuint;
xfloat = xlong;
xdouble = xlong;
xdecimal = xlong;
xfloat = xulong;
xdouble = xulong;
xdecimal = xulong;
xushort = xchar;
xint = xchar;
xuint = xchar;
xlong = xchar;
xulong = xchar;
xfloat = xchar;
xdouble = xchar;
xdecimal = xchar;
}
}