Add almost_zero wrapper for almost_equal

This commit is contained in:
Danny Robson 2012-05-03 18:11:42 +10:00
parent 946d4d1eb0
commit 2ef2554316

View File

@ -87,6 +87,12 @@ typename std::enable_if<
almost_equal (const Ta &a, const Tb &b)
{ return a == b; }
template <typename T>
bool
almost_zero (T a)
{ return almost_equal (a, 0); }
const double PI = 3.141592653589793238462643;
inline double