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 class
Base class for standard double formatting classes.private static class
Format class that uses engineering notation for all values.private static final class
Format class producing results similar toDouble.toString()
, with plain decimal notation for small numbers relatively close to zero and scientific notation otherwise.private static class
Format class that produces plain decimal strings that do not use scientific notation.private static class
Format class that uses scientific notation for all values.Methods in org.apache.commons.text.numbers with parameters of type ParsedDecimal.FormatOptionsModifier and TypeMethodDescriptionprivate void
ParsedDecimal.appendFraction
(int zeroCount, int startIdx, ParsedDecimal.FormatOptions opts) Appends the fractional component of the number to the current output buffer.private int
ParsedDecimal.appendWhole
(int wholeCount, ParsedDecimal.FormatOptions opts) Appends the whole number portion of this value to the output buffer.private int
ParsedDecimal.appendWholeGrouped
(int wholeCount, ParsedDecimal.FormatOptions opts) Appends the whole number portion of this value to the output buffer, adding thousands separators as needed.private int
ParsedDecimal.getDigitStringSize
(int decimalPos, ParsedDecimal.FormatOptions opts) Gets the number of characters required for the digit portion of a string representation of this value.private int
ParsedDecimal.getPlainStringSize
(int decimalPos, ParsedDecimal.FormatOptions opts) Gets the number of characters required to create a plain format representation of this value.private boolean
ParsedDecimal.shouldIncludeExponent
(int targetExponent, ParsedDecimal.FormatOptions opts) Returnstrue
if a formatted string with the given target exponent should include the exponent field.private boolean
ParsedDecimal.shouldIncludeMinus
(ParsedDecimal.FormatOptions opts) Returnstrue
if 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 String
ParsedDecimal.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.