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

Numerics

public class Numerics
The Numerics class contains common operations on numeric values.
public static bool AreEqual(object expected, object actual, ref Tolerance tolerance)

Test two numeric values for equality, performing the usual numeric conversions and using a provided or default tolerance. If the tolerance provided is Empty, this method may set it to a default 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.