Simulate tearing a double in C#

后端 未结 4 1402
北恋
北恋 2020-12-15 06:02

I\'m running on a 32-bit machine and I\'m able to confirm that long values can tear using the following code snippet which hits very quickly.

        static          


        
4条回答
  •  星月不相逢
    2020-12-15 06:42

    For what its worth this topic and code sample can be found here.

    http://msdn.microsoft.com/en-us/magazine/cc817398.aspx

提交回复
热议问题