world.money.Cash
See theCash companion object
final case class Cash(currency: Currency, digits: Int, increment: Int, mode: Rounding, incrementBy: Provenance, modeBy: Provenance)
A territory's cash-rounding practice for its tender: the currency the row governs, the increment in 10^-digits units of that currency, the midpoint mode, and - separately, because the two genuinely differ in kind - where each of those facts comes from.
Keyed by territory because the practice is the jurisdiction's. Switzerland's increment follows from its denomination set with no rounding provision in any instrument; Denmark's is statutory while its midpoint is stated by nothing; Finland's statute states both. Unstated marks a value no source states, recorded as this library's own documented choice rather than attributed to a rule that does not exist. Instances via Cash.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article