Money

data class Money(val currency: String? = null, val currencyField: String? = null, val scale: Int) : NumericFormat

An amount of money in exactly one of a fixed ISO 4217 currency or the currency named by the sibling string field currencyField. With a fixed currency, scale defaults to the currency's standard fraction digits (java.util.Currency.defaultFractionDigits: 2 for CNY, 0 for JPY); with currencyField it must be given.

Constructors

Link copied to clipboard
constructor(currency: String? = null, currencyField: String? = null, scale: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val scale: Int

The number of digits after the decimal point.