corda / net.corda.core.contracts / toDecimal

toDecimal

fun Amount<Currency>.toDecimal(): BigDecimal

Convert a currency Amount to a decimal representation. For example, with an amount with a quantity of "1234" GBP, returns "12.34".

See Also

Amount.Companion.fromDecimal