Class DoubleFormat.EngineeringDoubleFormat
java.lang.Object
org.apache.commons.text.numbers.DoubleFormat.AbstractDoubleFormat
org.apache.commons.text.numbers.DoubleFormat.EngineeringDoubleFormat
- All Implemented Interfaces:
DoubleFunction<String>, ParsedDecimal.FormatOptions
- Enclosing class:
DoubleFormat
private static final class DoubleFormat.EngineeringDoubleFormat
extends DoubleFormat.AbstractDoubleFormat
Format class that uses engineering notation for all values.
- Since:
- 1.10.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a formatted representation of the given rounded decimal value todst.
-
Constructor Details
-
EngineeringDoubleFormat
EngineeringDoubleFormat(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:
applyFiniteInternalin classDoubleFormat.AbstractDoubleFormat- Parameters:
val- value to format.- Returns:
- a formatted representation of the given rounded decimal value to
dst.
-