Scientific
data class Scientific(val minIntegerDigits: UInt, val maxIntegerDigits: UInt = minIntegerDigits, val minFractionDigits: UInt, val maxFractionDigits: UInt, val minExponent: UInt, val roundingMode: RoundingMode = RoundingMode.HalfEven) : NumberFormatStyle
Formats a number to its scientific notation.
Parameters
minIntegerDigits
The minimum number of integer digits to show in the mantissa. Defaults to 1U
.
maxIntegerDigits
The maximum number of integer digits to show in the mantissa. If this is greater than minIntegerDigits, it forces the exponent to be a multiple of maximum number of integer values. Otherwise the minimum number of integer digits is achieved by adjusting the exponent. Defaults to minIntegerDigits
minFractionDigits
The minimum number of decimal digits to show in the mantissa. Defaults to 1U
.
maxFractionDigits
The maximum number of decimal digits to show in the mantissa. Defaults to 16U
.
minExponent
The minimum number of digits to show in the exponent. Defaults to 1U
.
roundingMode
The RoundingMode to be applied. Defaults to RoundingMode.HalfEven.