Package org.apache.commons.text.numbers
Class DoubleFormat.ScientificDoubleFormat
java.lang.Object
org.apache.commons.text.numbers.DoubleFormat.AbstractDoubleFormat
org.apache.commons.text.numbers.DoubleFormat.ScientificDoubleFormat
- All Implemented Interfaces:
DoubleFunction<String>
,ParsedDecimal.FormatOptions
- Enclosing class:
DoubleFormat
Format class that uses scientific notation for all values.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a formatted representation of the given rounded decimal value todst
.Methods inherited from class org.apache.commons.text.numbers.DoubleFormat.AbstractDoubleFormat
apply, getDecimalSeparator, getDigits, getExponentSeparatorChars, getGroupingSeparator, getMinusSign, isAlwaysIncludeExponent, isGroupThousands, isIncludeFractionPlaceholder, isSignedZero
-
Constructor Details
-
ScientificDoubleFormat
ScientificDoubleFormat(DoubleFormat.Builder builder) Constructs a new instance.- Parameters:
builder
- builder instance containing configuration values
-
-
Method Details
-
applyFiniteInternal
Returns a formatted representation of the given rounded decimal value todst
.- Specified by:
applyFiniteInternal
in classDoubleFormat.AbstractDoubleFormat
- Parameters:
val
- value to format- Returns:
- a formatted representation of the given rounded decimal value to
dst
.
-