Cash

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product