Created
December 5, 2018 21:54
-
-
Save dbremner/40fd95b629d3a78f94603d8501522e27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = BitConverter.Int64BitsToDouble(BitConverter.ToInt64(BitConverter.GetBytes(0xFFF8000000000000), 0)); | |
var b = BitConverter.Int64BitsToDouble(BitConverter.ToInt64(BitConverter.GetBytes(0xFFF8000000000001), 0)); | |
Console.WriteLine(a == b); | |
Console.WriteLine(a.Equals(b)); | |
Console.WriteLine(a.Equals((object)b)); | |
Console.WriteLine(a.GetHashCode() == b.GetHashCode()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment