<PackageReference Include="NUnit" Version="4.6.1" />

NUnit.Framework.Constraints.Numerics

static class Numerics
public static bool AreEqual(object expected, object actual, ref Tolerance tolerance)

public static int Compare(object expected, object actual)

Compare two numeric values, performing the usual numeric conversions.

public static bool IsFixedPointNumeric(object obj)

Checks the type of the object, returning true if the object is a fixed point numeric type.

public static bool IsFloatingPointNumeric(object obj)

Checks the type of the object, returning true if the object is a floating point numeric type.

public static bool IsNumericType(object obj)

Checks the type of the object, returning true if the object is a numeric type.