示例#1
0
        public virtual bool IsApplicableTo(double value)
        {
            value = Math.Abs(value);
            double precision = DoubleHelper.GetPrecision(3, value);

            if (DoubleHelper.GreaterOrEqualWithPrecision(value, this.ApplicableRangeMinimum, precision))
            {
                return(DoubleHelper.LessWithPrecision(value, this.ApplicableRangeMaximum, precision));
            }
            return(false);
        }
示例#2
0
 public static bool LessWithPrecision(this double value1, double value2)
 {
     return(DoubleHelper.LessWithPrecision(value1, value2, 0.0001));
 }