¡@

Home 

c# Programming Glossary: double.maxvalue

C# - Inconsistent math operation result on 32-bit and 64-bit

http://stackoverflow.com/questions/2461319/c-sharp-inconsistent-math-operation-result-on-32-bit-and-64-bit

32 bit and 64 bit Consider the following code double v1 double.MaxValue double r Math.Sqrt v1 v1 r double.MaxValue on 32 bit machine.. code double v1 double.MaxValue double r Math.Sqrt v1 v1 r double.MaxValue on 32 bit machine r Infinity on 64 bit machine We develop on.. release mode. No doubt triggered by it seeing the value at double.MaxValue. That's a bug you can report it at connect.microsoft.com. Pretty..

Why doesn't this code demonstrate the non-atomicity of reads/writes?

http://stackoverflow.com/questions/3679209/why-doesnt-this-code-demonstrate-the-non-atomicity-of-reads-writes

_d In release if ... throw ... Debug.Assert dCopy 0D dCopy double.MaxValue Never fails private static void KeepMutating Random rand new.. Random rand new Random while true _d rand.Next 2 0 0D double.MaxValue To my surprise the assertion refused to fail even after a full.. 0000003f fstp qword ptr ebp 40h _d rand.Next 2 0 0D double.MaxValue 00000054 mov ecx dword ptr ebp 3Ch 00000057 mov edx 2 0000005c..