CppUnit project page FAQ

FloatingPoint.h
Go to the documentation of this file.
1#ifndef CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED
2#define CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED
3
5#include <cmath>
6
8
9inline bool floatingPointIsUnordered( double x )
10{
11 return std::isnan(x);
12}
13
14
17inline int floatingPointIsFinite( double x )
18{
19 return std::isfinite(x);
20}
21
23
24#endif // CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED
int floatingPointIsFinite(double x)
Tests if a floating-point is finite.
Definition FloatingPoint.h:17
CPPUNIT_NS_BEGIN bool floatingPointIsUnordered(double x)
Definition FloatingPoint.h:9
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105

Send comments to:
CppUnit Developers