The Finite Resolution Dynamics Software
Classes | Macros
rounding.h File Reference

Rigorous rounding of arithmetic operations. More...

#include "boost/numeric/interval.hpp"

Go to the source code of this file.

Classes

class  tRounding< NumType >
 A class for rounding operations which uses the BOOST library. More...
 

Macros

#define DEFOP(WHAT)
 This is an internal macro of the class template "tRounding" which defines arithmetic operations using the operations available in the BOOST library. More...
 

Detailed Description

Rigorous rounding of arithmetic operations.

This file contains the definition of a class for doing arithmetic operations with controlled rounding directions (upwards/downwards). This class uses the BOOST library.

Author
Pawel Pilarczyk

Definition in file rounding.h.

Macro Definition Documentation

◆ DEFOP

#define DEFOP (   WHAT)
Value:
static inline NumType WHAT (const NumType &x, const NumType &y) \
{ \
NumType result = Rounding. WHAT (x, y); \
Rounding. to_nearest (); \
return result; \
}

This is an internal macro of the class template "tRounding" which defines arithmetic operations using the operations available in the BOOST library.

Definition at line 54 of file rounding.h.