Logo Search packages:      
Sourcecode: quantlib version File versions

QuantLib::ClosestRounding Class Reference

#include <rounding.hpp>

Inheritance diagram for QuantLib::ClosestRounding:

QuantLib::Rounding

List of all members.


Detailed Description

Closest rounding.

Definition at line 107 of file rounding.hpp.


Public Types

enum  Type {
  None, Up, Down, Closest,
  Floor, Ceiling
}
 rounding methods More...

Public Member Functions

 ClosestRounding (Integer precision, Integer digit=5)
Decimal operator() (Decimal value) const
 perform rounding
Inspectors
Integer precision () const
Integer roundingDigit () const
Type type () const

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index