scalarApproxRel

Check whether the relative error between a and b is smaller than maxEps

template scalarApproxRel(T)
pure @safe @nogc nothrow
bool
scalarApproxRel
(
in T a
,
in T b
,
in T maxEps = 4 * T.epsilon
)
if (
isFloatingPoint!T
)

Members

Functions

scalarApproxRel
bool scalarApproxRel(T a, T b, T maxEps)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta