|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Closest rounding. More...
#include <rounding.hpp>
Inheritance diagram for ClosestRounding:
Collaboration diagram for ClosestRounding:Public Member Functions | |
| ClosestRounding (Integer precision, Integer digit=5) | |
Public Member Functions inherited from Rounding | |
| Rounding ()=default | |
| default constructor More... | |
| Rounding (Integer precision, Type type=Closest, Integer digit=5) | |
| Decimal | operator() (Decimal value) const |
| perform rounding More... | |
| Integer | precision () const |
| Type | type () const |
| Integer | roundingDigit () const |
Additional Inherited Members | |
Public Types inherited from Rounding | |
| enum | Type { None , Up , Down , Closest , Floor , Ceiling } |
| rounding methods More... | |
Closest rounding.
Definition at line 106 of file rounding.hpp.
|
explicit |
Definition at line 108 of file rounding.hpp.