MathExtensionsTests IsNearlyEqual Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void IsNearlyEqual()
Examples

[Test]
public void IsNearlyEqual()
{
    Assert.IsTrue(2.0f.IsNearlyEqual(2.00001f));
    Assert.IsFalse(2.0f.IsNearlyEqual(2.0002f));
    Assert.IsTrue(MathExtensions.Pi.IsNearlyEqual(3.1415f));
}
See Also