Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser.
Methods for double, float and decimal included, as well as versions that allow you to specify the Precision.
Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser. DecimalPrecisionDef defines the precision. If you just want to know whether two values are the same then use SameValue
public static int CompareValue(decimal,decimal);
Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser. For Values with lots of significant figures, then Precision should be made smaller. If you just want to know whether two values are the same then use SameValue
public static int CompareValue(decimal,decimal,decimal);
Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser. DoublePrecisionDef defines the precision. If you just want to know whether two values are the same then use SameValue
public static int CompareValue(double,double);
Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser. For Values with lots of significant figures, then Precision should be made smaller. If you just want to know whether two values are the same then use SameValue
public static int CompareValue(double,double,double);
Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser. FloatPrecisionDef defines the precision. If you just want to know whether two values are the same then use SameValue
public static int CompareValue(float,float);
Returns 0 if Values are within a "small" value computed from the supplied precision, 1 if the first value is greater than Y and -1 if the first value is lesser. For Values with lots of significant figures, then Precision should be made smaller. If you just want to know whether two values are the same then use SameValue
public static int CompareValue(float,float,float);
CompareOps Class | Esb.Math Namespace