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

convertZecToZatoshi

fun BigDecimal?.convertZecToZatoshi(): Long

Convert a ZEC value into Zatoshi. Start with ZEC -> End with Zatoshi.

Return
this ZEC value represented as Zatoshi, rounded accurately out to 128 digits, in order to minimize cumulative errors when applied repeatedly over a sequence of calculations.