Money
Represents a monetary value.
Money is an implementation of the pattern with the same name and provides methods for mathematical operations, allocation, and currency exchange rate. The Money type is intended to be used as a base data type.
Properties
The monetary amount.
true if it has rounding support.
true if the monetary amount is negative.
true if the monetary amount is negative or zero.
true if the monetary amount is positive.
true if the monetary amount is positive or zero.
Functions
Decreases this Money by the given Percentage.
Increases this Money by the given Percentage.
Creates a Money based on this instance with the NoRounding strategy.
Creates a Money based on this instance but with the monetary amount set to the smallest unit of the currency. Example:
Multiplies this Money by the given Percentage.
Returns a string representation of the object, including all public properties.
Creates a Money by negating this instance.