Amount.getDisplayTokenSize - corda

corda / net.corda.core.contracts / Amount / getDisplayTokenSize

# getDisplayTokenSize

`@JvmStatic fun getDisplayTokenSize(token: Any): BigDecimal`

Determines the representation of one Token quantity in BigDecimal. For Currency and Issued the definitions is taken from Currency defaultFractionDigits property e.g. 2 for USD, or 0 for JPY so that the automatic token size is the conventional minimum penny amount. For other possible token types the asset token should implement TokenizableAssetInfo to correctly report the designed nominal amount.