Kotlin, Kotest, Property Based Testing.
or equal null." } } } data class OutputPositionDto( val name: String, val value: MonetaryAmount ) fun Double.toEURCurrency(): MonetaryAmount { return BigDecimal(this, MathContext(2, RoundingMode.HALF_UP)).ofCurrency<FastMoney>("EUR".asCurrency(), typedMonetaryContext<FastMoney> { setPrecision(2) })