<PackageReference Include="NUnit" Version="5.1.0-beta.1" />

NUnit.Framework.Constraints.FloatingPointNumerics

static class FloatingPointNumerics
Helper routines for working with floating point numbers
namespace NUnit.Framework.Constraints { internal static class FloatingPointNumerics { public static bool AreAlmostEqualUlps(float left, float right, int maxUlps); public static bool AreAlmostEqualUlps(double left, double right, long maxUlps); public static bool AreAlmostEqualUlps<[Nullable(0)] T>(T left, T right, long maxUlps) where T : IFloatingPointIeee754<T>; public static bool AreAlmostEqualUlps(Half left, Half right, int maxUlps); } }