almost_equal

Compares to values and returns true if the difference is epsilon or smaller.

  1. bool almost_equal(T a, S b, float epsilon)
    @safe pure nothrow
    bool
    almost_equal
    (
    T
    S
    )
    (
    T a
    ,
    S b
    ,
    float epsilon = 0.000001f
    )
  2. bool almost_equal(T a, S b, float epsilon)
  3. bool almost_equal(T a, T b, float epsilon)

Meta