Class DoubleFormat.MixedDoubleFormat

java.lang.Object
org.apache.commons.text.numbers.DoubleFormat.AbstractDoubleFormat
org.apache.commons.text.numbers.DoubleFormat.MixedDoubleFormat
All Implemented Interfaces:
DoubleFunction<String>, ParsedDecimal.FormatOptions
Enclosing class:
DoubleFormat

private static final class DoubleFormat.MixedDoubleFormat extends DoubleFormat.AbstractDoubleFormat
Format class producing results similar to Double.toString(), with plain decimal notation for small numbers relatively close to zero and scientific notation otherwise.
Since:
1.10.0
  • Field Details

    • plainMaxExponent

      private final int plainMaxExponent
      Max decimal exponent for plain format.
    • plainMinExponent

      private final int plainMinExponent
      Min decimal exponent for plain format.
  • Constructor Details

    • MixedDoubleFormat

      MixedDoubleFormat(DoubleFormat.Builder builder)
      Constructs a new instance.
      Parameters:
      builder - builder instance containing configuration values
  • Method Details