Provides an addition operation with conversion semantics preserving right operand's currency in the return value.
Provides an addition operation with conversion semantics preserving right operand's currency in the return value.
The type parameter defining the currency of the right operand.
The monetary value to add to this
.
The implicit foreign exchange rate converter.
Some monetary value instance as the sum of two operands if foreign exchange rate is defined, None
otherwise.
Provides a subtraction operation with conversion semantics preserving right operand's currency in the return value.
Provides a subtraction operation with conversion semantics preserving right operand's currency in the return value.
The type parameter defining the currency of the right operand.
The monetary value to subtract from this
.
The implicit foreign exchange rate converter.
Some monetary value instance as the difference of two operands if foreign exchange rate is defined, None
otherwise.
Provides a monetary division operation.
Provides a monetary division operation.
The divisor.
Some of the ratio if conversion is required and successful, None
otherwise.
Provides an addition operation with conversion semantics preserving left operand's currency in the return value.
Provides an addition operation with conversion semantics preserving left operand's currency in the return value.
The type parameter defining the currency of the right operand.
The monetary value to add to this
.
The implicit foreign exchange rate converter.
Some monetary value instance as the sum of two operands if foreign exchange rate is defined, None
otherwise.
Provides a subtraction operation with conversion semantics preserving left operand's currency in the return value.
Provides a subtraction operation with conversion semantics preserving left operand's currency in the return value.
The type parameter defining the currency of the right operand.
The monetary value to subtract from this
.
The implicit foreign exchange rate converter.
Some monetary value instance as the difference of two operands if foreign exchange rate is defined, None
otherwise.
Converts the monetary value instance to a new one with target currency.
Converts the monetary value instance to a new one with target currency.
The Currency type which the conversion will be targeted at.
Target currency.
An optional new monetary value instance if the conversion is successful, None
otherwise.
Returns the converted monetary value as of the given foreign exchange rate.
Returns the converted monetary value as of the given foreign exchange rate.
Foreign exchange rate.
A new Money instance which is converted from this
.
Returns the converted monetary value as of the given foreign exchange rate.
Returns the converted monetary value as of the given foreign exchange rate.
Foreign exchange rate.
A new Money instance which is converted from this
.
Provides a scalar multiplication operation.
Provides a scalar multiplication operation.
The scalar term to be multiplied with the quantity of this
.
A new Money instance of which the quantity is the multiplication of o
and the quantity of this
.
Provides a scalar addition operation.
Provides a scalar addition operation.
The scalar term to be added to the quantity of this
.
A new Money instance of which the quantity is the sum of the quantity of this
and o
.
Provides a scalar subtraction operation.
Provides a scalar subtraction operation.
The scalar term to be subtracted from the quantity of this
.
A new Money instance of which the quantity is the subtraction of o
from the quantity of this
.
Provides a scalar division operation.
Provides a scalar division operation.
The scalar term by which to divide the quantity of this
.
A new Money instance of which the quantity is the division of the quantity of this
by o
.
Returns the absolute monetary value.
Returns the absolute monetary value.
A new Money instance of which the quantity is the absolute quantity of this
.
The currency of the monetary value.
Provides a function to map a given function over the currency and return a new monetary value instance.
Provides a function to map a given function over the currency and return a new monetary value instance.
The type parameter defining the new currency to be produced.
Function which consumes the currency of the monetary value and returns a new currency.
A new Money instance of which the currency is defined by the application of the f
function.
Provides a function to map a given function over the date of value and return a new monetary value instance.
Provides a function to map a given function over the date of value and return a new monetary value instance.
Function which consumes the date of value and returns a new date of value.
New Money instance of which the date of value is defined by the application of the f
function.
The date the monetary value is effective as of.
Returns the inverted monetary value (by qty' => 1 / qty
).
Returns the inverted monetary value (by qty' => 1 / qty
).
A new Money instance of which the quantity is the inverted quantity of this
.
Returns the exponentiated monetary value.
Returns the exponentiated monetary value.
The exponent.
A new Money instance of which the quantity is the exponentiation of the quantity of this
by n
.
Defines a function which creates a binary, scalar function, applies to this
and o
and return a new monetary value.
Defines a function which creates a binary, scalar function, applies to this
and o
and return a new monetary value.
The binary, scalar function.
The scalar term.
A new Money instance of which the quantity is defined by the application of the f
function.
Provides a function to map a given function over the quantity and return a new monetary value instance.
Provides a function to map a given function over the quantity and return a new monetary value instance.
Function which consumes the quantity and returns a new quantity.
New Money instance of which the quantity is defined by the application of the f
function.
The quantity of the monetary value.
Removes redundant precision by properly rounding Money.qty as per Money.ccy type.
Returns the negated monetary value.
Returns the negated monetary value.
A new Money instance of which the quantity is the negated quantity of this
.
Provides a function to map a given function over the value slots and return a new monetary value instance.
Provides a function to map a given function over the value slots and return a new monetary value instance.
Provides a simple monetary addition operation over same currency monetary values.
Provides a simple monetary addition operation over same currency monetary values.
Monetary value to be added.
A new Money instance which is the addition of two monetary values.
Provides a simple monetary subtraction operation over same currency monetary values.
Provides a simple monetary subtraction operation over same currency monetary values.
Monetary value to be subtracted.
A new Money instance which is the subtraction of two monetary values.
Provides a simple monetary division operation over same currency monetary values.
Provides a simple monetary division operation over same currency monetary values.
Monetary value to divide this
by.
The ratio of quantities of the two monetary value instances.
Defines a data model for monetary values and operations defined on monetary value instances.
The type parameter defining the currency of the monetary value.
The currency of the monetary value.
The quantity of the monetary value.
The date the monetary value is effective as of.