corda / net.corda.core.contracts / Amount / fromDecimal

fromDecimal

fun fromDecimal(quantity: BigDecimal, currency: Currency): Amount<Currency>

Build an amount from a decimal representation. For example, with an input of "12.34" GBP, returns an amount with a quantity of "1234".

See Also

Amount