All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
paal::utils::compare< T > Class Template Reference

Class for comparing floating point. More...

#include <floating.hpp>

Public Member Functions

 compare (T epsilon=std::numeric_limits< T >::epsilon())
bool e (T a, T b) const
bool g (T a, T b) const
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

Detailed Description

template<typename T>
class paal::utils::compare< T >

Class for comparing floating point.

Definition at line 26 of file floating.hpp.

The documentation for this class was generated from the following file: