EleFits  4.0.0
A modern C++ API on top of CFitsIO

◆ approx()

template<typename T >
bool Euclid::Fits::Test::approx ( test,
ref,
double  tol = 0.01 
)

Check whether a test value is approximately equal to a reference value.

Floating point values are compared as: |test - ref| / ref < tol Complex values are tested component-wise. Other types are tested for equality.