Package | Description |
---|---|
org.apache.commons.text.numbers |
Provides algorithms for converting numbers to strings.
|
Modifier and Type | Method and Description |
---|---|
DoubleFormat.Builder |
DoubleFormat.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 |
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 |
DoubleFormat.builder()
Creates a
DoubleFormat.Builder for building formatter functions for this format type. |
DoubleFormat.Builder |
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.
|
DoubleFormat.Builder |
DoubleFormat.Builder.digits(String digits)
Sets the string containing the digit characters 0-9, in that order.
|
DoubleFormat.Builder |
DoubleFormat.Builder.exponentSeparator(String exponentSeparator)
Sets the exponent separator character, i.e., the string placed between
the mantissa and the exponent.
|
DoubleFormat.Builder |
DoubleFormat.Builder.formatSymbols(DecimalFormatSymbols symbols)
Configures this instance with the given format symbols.
|
DoubleFormat.Builder |
DoubleFormat.Builder.groupingSeparator(char groupingSeparator)
Sets the character used to separate groups of thousands.
|
DoubleFormat.Builder |
DoubleFormat.Builder.groupThousands(boolean groupThousands)
If set to
true , thousands will be grouped with the
grouping separator . |
DoubleFormat.Builder |
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.
|
DoubleFormat.Builder |
DoubleFormat.Builder.infinity(String infinity)
Sets the string used to represent infinity.
|
DoubleFormat.Builder |
DoubleFormat.Builder.maxPrecision(int maxPrecision)
Sets the maximum number of significant decimal digits used in format
results.
|
DoubleFormat.Builder |
DoubleFormat.Builder.minDecimalExponent(int minDecimalExponent)
Sets the minimum decimal exponent for formatted strings.
|
DoubleFormat.Builder |
DoubleFormat.Builder.minusSign(char minusSign)
Sets the character used as the minus sign.
|
DoubleFormat.Builder |
DoubleFormat.Builder.nan(String nan)
Sets the string used to represent
Double.NaN . |
DoubleFormat.Builder |
DoubleFormat.Builder.plainFormatMaxDecimalExponent(int plainFormatMaxDecimalExponent)
Sets the maximum decimal exponent for numbers formatted as plain decimal strings when
using the
MIXED format type. |
DoubleFormat.Builder |
DoubleFormat.Builder.plainFormatMinDecimalExponent(int plainFormatMinDecimalExponent)
Sets the minimum decimal exponent for numbers formatted as plain decimal strings when
using the
MIXED format type. |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.