EsbDecimals - a Free Subset of ESBPCS for .NET

CompareOps.SameValue Method

Returns True if the Values are within a "small" value of each other.

Methods for double, float and decimal included, as well as versions that allow you to specify the Precision.

Overload List

Returns True if the Values are within a "small" value of each other. If you want more control over the comparison then use CompareValueDecimalPrecisionDef defines the precision.

public static bool SameValue(decimal,decimal);

Returns True if the Values are within a "small" value computed from the supplied Precision. For Values with lots of significant figures, then Precision should be made smaller. If you want more control over the comparison then use CompareValue

public static bool SameValue(decimal,decimal,decimal);

Returns True if the Values are within a "small" value of each other. DoublePrecisionDef defines the precision. If you want more control over the comparison then use CompareValue

public static bool SameValue(double,double);

Returns True if the Values are within a "small" value computed from the supplied Precision. For Values with lots of significant figures, then Precision should be made smaller. If you want more control over the comparison then use CompareValue

public static bool SameValue(double,double,double);

Returns True if the Values are within a "small" value of each other. FloatPrecisionDef defines the precision. If you want more control over the comparison then use CompareValue

public static bool SameValue(float,float);

Returns True if the Values are within a "small" value computed from the supplied Precision. For Values with lots of significant figures, then Precision should be made smaller. If you want more control over the comparison then use CompareValue

public static bool SameValue(float,float,float);

See Also

CompareOps Class | Esb.Math Namespace