Uses of Interface
org.apache.commons.text.numbers.ParsedDecimal.FormatOptions
Packages that use ParsedDecimal.FormatOptions
Package
Description
Provides algorithms for converting numbers to strings.
-
Uses of ParsedDecimal.FormatOptions in org.apache.commons.text.numbers
Classes in org.apache.commons.text.numbers that implement ParsedDecimal.FormatOptionsModifier and TypeClassDescriptionprivate static classBase class for standard double formatting classes.private static classFormat class that uses engineering notation for all values.private static final classFormat class producing results similar toDouble.toString(), with plain decimal notation for small numbers relatively close to zero and scientific notation otherwise.private static classFormat class that produces plain decimal strings that do not use scientific notation.private static classFormat class that uses scientific notation for all values.Methods in org.apache.commons.text.numbers with parameters of type ParsedDecimal.FormatOptionsModifier and TypeMethodDescriptionprivate voidParsedDecimal.appendFraction(int zeroCount, int startIdx, ParsedDecimal.FormatOptions opts) Appends the fractional component of the number to the current output buffer.private intParsedDecimal.appendWhole(int wholeCount, ParsedDecimal.FormatOptions opts) Appends the whole number portion of this value to the output buffer.private intParsedDecimal.appendWholeGrouped(int wholeCount, ParsedDecimal.FormatOptions opts) Appends the whole number portion of this value to the output buffer, adding thousands separators as needed.private intParsedDecimal.getDigitStringSize(int decimalPos, ParsedDecimal.FormatOptions opts) Gets the number of characters required for the digit portion of a string representation of this value.private intParsedDecimal.getPlainStringSize(int decimalPos, ParsedDecimal.FormatOptions opts) Gets the number of characters required to create a plain format representation of this value.private booleanParsedDecimal.shouldIncludeExponent(int targetExponent, ParsedDecimal.FormatOptions opts) Returnstrueif a formatted string with the given target exponent should include the exponent field.private booleanParsedDecimal.shouldIncludeMinus(ParsedDecimal.FormatOptions opts) Returnstrueif formatted strings should include the minus sign, considering the value of this instance and the given format options.ParsedDecimal.toEngineeringString(ParsedDecimal.FormatOptions opts) Returns a string representation of this value in engineering notation.ParsedDecimal.toPlainString(ParsedDecimal.FormatOptions opts) Returns a string representation of this value with no exponent field.private StringParsedDecimal.toScientificString(int decimalPos, ParsedDecimal.FormatOptions opts) Returns a string representation of the value in scientific notation using the given decimal point position.ParsedDecimal.toScientificString(ParsedDecimal.FormatOptions opts) Returns a string representation of this value in scientific notation.