copy

fun copy(significand: BigInteger = this.significand, exponent: Long = this.exponent, decimalMode: DecimalMode? = this.decimalMode): BigDecimal

Creates a copy of this BigDecimal with some different elements (significand/exponent/decimalMode)