public class FloatingPointFormat extends DecimalFormat implements RevisionHandler
NumberFormat.Field
FRACTION_FIELD, INTEGER_FIELD
Constructor and Description |
---|
FloatingPointFormat()
Default constructor
|
FloatingPointFormat(int digits) |
FloatingPointFormat(int w,
int d) |
FloatingPointFormat(int w,
int d,
boolean trailingZeros) |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos) |
String |
getRevision()
Returns the revision string.
|
static String |
pattern(int w,
int d) |
int |
width() |
applyLocalizedPattern, applyPattern, clone, equals, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnly
format, parseObject
public FloatingPointFormat()
public FloatingPointFormat(int digits)
public FloatingPointFormat(int w, int d)
public FloatingPointFormat(int w, int d, boolean trailingZeros)
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format
in class DecimalFormat
public static String pattern(int w, int d)
public int width()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.