Skip to content

Support for Epsilon on double and float #32

@GooRiOn

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()

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