convertZatoshiToZec |
Convert a Zatoshi value into ZEC, right-padded to the given number of fraction digits, represented as a BigDecimal in order to preserve rounding that minimizes cumulative error when applied repeatedly over a sequence of calculations. Start with Zatoshi -> End with ZEC. fun Long?.convertZatoshiToZec(scale: Int = ZEC_FORMATTER.maximumFractionDigits): BigDecimal |
convertZatoshiToZecString |
Format a Zatoshi value into ZEC with the given number of digits, represented as a string. Start with Zatoshi -> End with ZEC. fun Long?.convertZatoshiToZecString(maxDecimals: Int = ZEC_FORMATTER.maximumFractionDigits, minDecimals: Int = ZEC_FORMATTER.minimumFractionDigits): String |