vecxt_re.CurrencyAmount
See theCurrencyAmount companion object
This should NOT be used for actual cash values. We use double here because this intended for financial simulation where errors of <0.01 are meaningless. An absolute monetary quantity denominated in a single currency, e.g. a notional, limit, premium or loss.
Amounts in different currencies are never implicitly combined: arithmetic between currencies fails, and conversion requires an explicit FX rate. Scaling by a Rel yields a CurrencyAmount (premium = notional × coupon); dividing two amounts in the same currency yields a Rel.
Stored as a Double in major currency units; AmountUnit only affects construction and display.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article