basic rounding class More...
#include <ql/math/rounding.hpp>
Inheritance diagram for Rounding:Public Types | |
| enum | Type { None, Up, Down, Closest, Floor, Ceiling } |
| rounding methods More... | |
Public Member Functions | |
| Rounding () | |
| default constructor More... | |
| Rounding (Integer precision, Type type=Closest, Integer digit=5) | |
| Decimal | operator() (Decimal value) const |
| perform rounding | |
Inspectors | |
| Integer | precision () const |
| Type | type () const |
| Integer | roundingDigit () const |
basic rounding class
| enum Type |
rounding methods
The rounding methods follow the OMG specification available at http://www.omg.org/cgi-bin/doc?formal/00-06-29.pdf.
| Rounding | ( | ) |
default constructor
Instances built through this constructor don't perform any rounding.