corda / net.corda.core.contracts / Amount / toString

toString

fun toString(): String

Convert a currency Amount to a display string representation.

For example, with an amount with a quantity of "1234" GBP, returns "12.34 GBP". The result of fromDecimal is used to control the numerical formatting and the token specifier appended is taken from token.toString.

See Also

Amount.fromDecimal