QuantLib_Money man page

Money — amount of cash

Synopsis

#include <ql/money.hpp>

Public Member Functions

Constructors

Money ()

Money (const Currency &currency, Decimal value)

Money (Decimal value, const Currency &currency)

Inspectors

const Currency & currency () const

Decimal value () const

Money rounded () const

Money arithmetics
See below for non-member functions and for settings which determine the behavior of the operators.

Money operator+ () const

Money operator- () const

Money & operator+= (const Money &)

Money & operator-= (const Money &)

Money & operator*= (Decimal)

Money & operator/= (Decimal)

Conversion settings

These parameters are used for combining money amounts in different currencies

enum ConversionType { NoConversion, BaseCurrencyConversion, AutomatedConversion }

static ConversionType conversionType

static Currency baseCurrency

Detailed Description

amount of cash

Tests

money arithmetic is tested with and without currency conversions.

Member Enumeration Documentation

enum ConversionType

Enumerator

NoConversion
do not perform conversions
BaseCurrencyConversion
convert both operands to the base currency before converting
AutomatedConversion
return the result in the currency of the first operand

Author

Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

AutomatedConversion(3), baseCurrency(3), BaseCurrencyConversion(3), conversionType(3), ConversionType(3), Money(3), NoConversion(3) and rounded(3) are aliases of QuantLib_Money(3).

Fri Sep 23 2016 Version 1.8.1 QuantLib