Rounding

data class Rounding(val maximumFractionDigits: Int? = null, val roundingMode: String = ROUNDING_MODE, val maximumSignificantDigits: Int = DECIMAL_128_SIGNIFICANT_DIGITS)

Rounding for BigDecimal

Constructors

Link copied to clipboard
constructor(maximumFractionDigits: Int? = null, roundingMode: String = ROUNDING_MODE, maximumSignificantDigits: Int = DECIMAL_128_SIGNIFICANT_DIGITS)

Properties

Link copied to clipboard

The maximum number of digits as part of the fraction.

Link copied to clipboard

The maximum number of significant digits

Link copied to clipboard

Describes the rounding mode. Can be either half-even, ceil, or floor