Rounding Class Reference
#include <ql/Math/rounding.hpp>
Inheritance diagram for Rounding:

Detailed Description
basic rounding class
- Tests:
- the correctness of the returned values is tested by checking them against known good results.
Inspectors | |
Integer | precision () const |
Type | type () const |
Integer | roundingDigit () const |
Public Types | |
enum | Type { None, Up, Down, Closest, Floor, Ceiling } |
rounding methods More... | |
Public Member Functions | |
Rounding () | |
default constructor | |
Rounding (Integer precision, Type type=Closest, Integer digit=5) | |
Decimal | operator() (Decimal value) const |
perform rounding |
Member Enumeration Documentation
|
rounding methods The rounding methods follow the OMG specification available at ftp://ftp.omg.org/pub/docs/formal/00-06-29.pdf
|
Constructor & Destructor Documentation
|
default constructor Instances built through this constructor don't perform any rounding. |