Skip to content

Support for Epsilon on double and float #32

Description

@GooRiOn

Currently we don't support Epsilon in extensions for double and float. The suggestion is that each method should have default parameter like:

(this IValitRule<TObject, double> rule, double value, double epsilon = 0.0d)

so user can specify it, but it's not required. Each method should then consider this number in the calculations. Need to applied for:

  • IsGreaterThan()
  • IsLessThan()
  • IsEqualTo()
  • IsPositive()
  • IsNegative()
  • IsNonZero()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions