11#ifndef _C_ARITHMETICS_C_IS_EQUAL_H_
12#define _C_ARITHMETICS_C_IS_EQUAL_H_
48 template <
typename DataType>
51 if (std::fabs(x - y) <= 2.0 * std::numeric_limits<DataType>::epsilon())
This namespace declares arithmetic functions in C.
bool is_equal(DataType x, DataType y)
Check if two floating point numbers are equal within a tolerance.