Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can C# exist without dotnet?? Pin
turbochimp28-Sep-05 22:29
turbochimp28-Sep-05 22:29 
GeneralRe: Can C# exist without dotnet?? Pin
SIJUTHOMASP28-Sep-05 23:47
professionalSIJUTHOMASP28-Sep-05 23:47 
GeneralRe: Can C# exist without dotnet?? Pin
Dave Kreskowiak29-Sep-05 0:50
mveDave Kreskowiak29-Sep-05 0:50 
AnswerRe: Can C# exist without dotnet?? Pin
Dave Everett30-Sep-05 9:41
Dave Everett30-Sep-05 9:41 
Questionoperator overload Pin
sduhd28-Sep-05 16:20
sduhd28-Sep-05 16:20 
AnswerRe: operator overload Pin
Guffa28-Sep-05 20:53
Guffa28-Sep-05 20:53 
GeneralRe: operator overload Pin
sduhd29-Sep-05 17:35
sduhd29-Sep-05 17:35 
GeneralRe: operator overload Pin
Guffa30-Sep-05 5:09
Guffa30-Sep-05 5:09 
Here is the compiled code:

x = double.MaxValue;<br />
<br />
00000020  mov         dword ptr [ebp-10h],0FFFFFFFFh<br />
00000027  mov         dword ptr [ebp-0Ch],7FEFFFFFh<br />
<br />
y = double.MaxValue;<br />
<br />
0000002e  mov         dword ptr [ebp-18h],0FFFFFFFFh<br />
00000035  mov         dword ptr [ebp-14h],7FEFFFFFh<br />
<br />
z = x + y - y;<br />
<br />
0000003c  fld         qword ptr [ebp-10h]<br />
0000003f  fadd        qword ptr [ebp-18h]<br />
00000042  fsub        qword ptr [ebp-18h]<br />
00000045  fstp        qword ptr [ebp-20h]


The actual calculation is done in the FPU, storing the result of the first calculation internally. It looks like the datatype used internally can handle larger values than a double, as the result of the calculation is correct.

---
b { font-weight: normal; }

QuestionSystem.TypeInitialization exception Pin
CNU28-Sep-05 15:34
CNU28-Sep-05 15:34 
AnswerRe: System.TypeInitialization exception Pin
Dave Kreskowiak28-Sep-05 17:20
mveDave Kreskowiak28-Sep-05 17:20 
GeneralRe: System.TypeInitialization exception Pin
Anonymous28-Sep-05 18:12
Anonymous28-Sep-05 18:12 
GeneralRe: System.TypeInitialization exception Pin
Dave Kreskowiak29-Sep-05 0:36
mveDave Kreskowiak29-Sep-05 0:36 
QuestionAVLTree vs. System.Collections.Hashtable Pin
Mark J. Miller28-Sep-05 13:44
Mark J. Miller28-Sep-05 13:44 
AnswerRe: AVLTree vs. System.Collections.Hashtable Pin
leppie29-Sep-05 1:29
leppie29-Sep-05 1:29 
QuestionRe: AVLTree vs. System.Collections.Hashtable Pin
Mark J. Miller29-Sep-05 3:26
Mark J. Miller29-Sep-05 3:26 
AnswerRe: AVLTree vs. System.Collections.Hashtable Pin
leppie29-Sep-05 3:37
leppie29-Sep-05 3:37 
GeneralRe: AVLTree vs. System.Collections.Hashtable Pin
Mark J. Miller29-Sep-05 3:42
Mark J. Miller29-Sep-05 3:42 
GeneralRe: AVLTree vs. System.Collections.Hashtable Pin
Robert Rohde29-Sep-05 8:53
Robert Rohde29-Sep-05 8:53 
QuestionSocket question Pin
Steve Messer28-Sep-05 11:55
Steve Messer28-Sep-05 11:55 
AnswerRe: Socket question Pin
Stefan Troschuetz28-Sep-05 21:30
Stefan Troschuetz28-Sep-05 21:30 
Questionsaving a remote binary file (swf) locally with c# Pin
sascho28-Sep-05 11:55
sascho28-Sep-05 11:55 
GeneralRe: saving a remote binary file (swf) locally with c# Pin
Guffa28-Sep-05 12:21
Guffa28-Sep-05 12:21 
GeneralRe: saving a remote binary file (swf) locally with c# Pin
sascho28-Sep-05 13:57
sascho28-Sep-05 13:57 
AnswerRe: saving a remote binary file (swf) locally with c# Pin
Dave Kreskowiak28-Sep-05 14:53
mveDave Kreskowiak28-Sep-05 14:53 
AnswerRe: saving a remote binary file (swf) locally with c# Pin
jkersch29-Sep-05 4:26
jkersch29-Sep-05 4:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.