Method | Description | |
---|---|---|
AreEqual ( object expected, object actual, |
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.
|
|
Compare ( object expected, object actual ) : int |
Compare two numeric values, performing the usual numeric conversions.
|
|
IsFixedPointNumeric ( Object obj ) : bool |
Checks the type of the object, returning true if the object is a fixed point numeric type.
|
|
IsFloatingPointNumeric ( Object obj ) : bool |
Checks the type of the object, returning true if the object is a floating point numeric type.
|
|
IsNumericType ( Object obj ) : bool |
Checks the type of the object, returning true if the object is a numeric type.
|
Method | Description | |
---|---|---|
AreEqual ( decimal expected, decimal actual, |
||
AreEqual ( double expected, double actual, |
||
AreEqual ( float expected, float actual, |
||
AreEqual ( int expected, int actual, |
||
AreEqual ( long expected, long actual, |
||
AreEqual ( uint expected, uint actual, |
||
AreEqual ( ulong expected, ulong actual, |
||
Numerics ( ) : System |
public static AreEqual ( object expected, object actual, |
||
expected | object | The expected value |
actual | object | The actual value |
tolerance | A reference to the tolerance in effect | |
return | bool |
public static Compare ( object expected, object actual ) : int | ||
expected | object | The expected value |
actual | object | The actual value |
return | int |
public static IsFixedPointNumeric ( Object obj ) : bool | ||
obj | Object | The object to check |
return | bool |
public static IsFloatingPointNumeric ( Object obj ) : bool | ||
obj | Object | The object to check |
return | bool |
public static IsNumericType ( Object obj ) : bool | ||
obj | Object | The object to check |
return | bool |