[TestMethod] public void FloatingPointCheck() { Assert.AreEqual(0.2, 0.1 + 0.1); // Passes Assert.AreEqual(3.0, 1.0 + 2.0); // Passes Assert.AreEqual(0.3, 0.1 + 0.2); // Fails }
If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org
C#
Date: 2023-01-15 00:40 (UTC)