Class for comparing floating point. More...
#include <floating.hpp>
Public Member Functions | |
| compare (T epsilon=std::numeric_limits< T >::epsilon()) | |
| constructor | |
| bool | e (T a, T b) const |
| equals | |
| bool | g (T a, T b) const |
| greater | |
| bool | ge (T a, T b) const |
| greater equals | |
| bool | le (T a, T b) const |
| less equals | |
| double | get_epsilon () const |
| get_epsilon used in comparison | |
Static Public Member Functions | |
| static T | default_epsilon () |
| returns default epsilon equals the smallest possible difference on doubles | |
Class for comparing floating point.
Definition at line 26 of file floating.hpp.
1.8.5