ATLAS Offline Software
Namespaces | Functions
close_to_zero.h File Reference

test if a value is close enough to zero to be an unreliable denominator. More...

#include <limits>
#include <cmath>
#include <type_traits>
Include dependency graph for close_to_zero.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 CxxUtils
 

Functions

template<typename T >
bool CxxUtils::close_to_zero (T value, T eps=std::numeric_limits< T >::epsilon())
 

Detailed Description

test if a value is close enough to zero to be an unreliable denominator.

Author
shaun roe
Date
Oct 2025

Definition in file close_to_zero.h.