zcash-android-wallet-sdk / cash.z.wallet.sdk.ext / java.math.BigDecimal / toZec

toZec

fun BigDecimal?.toZec(decimals: Int = ZEC_FORMATTER.maximumFractionDigits): BigDecimal

Format a BigDecimal ZEC value as a BigDecimal ZEC value, right-padded to the given number of fraction digits. Start with ZEC -> End with ZEC.

Parameters

decimals - the scale to use for the resulting BigDecimal.

Return
this BigDecimal ZEC adjusted to the default scale and rounding mode.