Uses of Class
org.apache.commons.text.numbers.DoubleFormat.Builder
Package
Description
Provides algorithms for converting numbers to strings.
-
Uses of DoubleFormat.Builder in org.apache.commons.text.numbers
Modifier and TypeMethodDescriptionDoubleFormat.Builder.allowSignedZero
(boolean signedZero) Sets the flag determining whether or not the zero string may be returned with the minus sign or if it will always be returned in the positive form.DoubleFormat.Builder.alwaysIncludeExponent
(boolean alwaysIncludeExponent) Sets the flag indicating if an exponent value should always be included in the formatted value, even if the exponent value is zero.DoubleFormat.builder()
Creates aDoubleFormat.Builder
for building formatter functions for this format type.DoubleFormat.Builder.decimalSeparator
(char decimalSeparator) Sets the decimal separator character, i.e., the character placed between the whole number and fractional portions of the formatted strings.Sets the string containing the digit characters 0-9, in that order.DoubleFormat.Builder.exponentSeparator
(String exponentSeparator) Sets the exponent separator character, i.e., the string placed between the mantissa and the exponent.DoubleFormat.Builder.formatSymbols
(DecimalFormatSymbols symbols) Configures this instance with the given format symbols.DoubleFormat.Builder.groupingSeparator
(char groupingSeparator) Sets the character used to separate groups of thousands.DoubleFormat.Builder.groupThousands
(boolean groupThousands) If set totrue
, thousands will be grouped with thegrouping separator
.DoubleFormat.Builder.includeFractionPlaceholder
(boolean fractionPlaceholder) Sets the flag determining whether or not a zero character is added in the fraction position when no fractional value is present.Sets the string used to represent infinity.DoubleFormat.Builder.maxPrecision
(int maxPrecision) Sets the maximum number of significant decimal digits used in format results.DoubleFormat.Builder.minDecimalExponent
(int minDecimalExponent) Sets the minimum decimal exponent for formatted strings.DoubleFormat.Builder.minusSign
(char minusSign) Sets the character used as the minus sign.Sets the string used to representDouble.NaN
.DoubleFormat.Builder.plainFormatMaxDecimalExponent
(int plainFormatMaxDecimalExponent) Sets the maximum decimal exponent for numbers formatted as plain decimal strings when using theMIXED
format type.DoubleFormat.Builder.plainFormatMinDecimalExponent
(int plainFormatMinDecimalExponent) Sets the minimum decimal exponent for numbers formatted as plain decimal strings when using theMIXED
format type.