public class ExponentialFormat extends DecimalFormat implements RevisionHandler
NumberFormat.Field
Modifier and Type | Field and Description |
---|---|
protected int |
digits |
protected int |
exp |
protected DecimalFormat |
nf |
protected boolean |
sign |
protected boolean |
trailing |
FRACTION_FIELD, INTEGER_FIELD
Constructor and Description |
---|
ExponentialFormat() |
ExponentialFormat(int digits) |
ExponentialFormat(int digits,
boolean trailing) |
ExponentialFormat(int digits,
int exp,
boolean sign,
boolean trailing) |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos) |
String |
getRevision()
Returns the revision string.
|
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
protected DecimalFormat nf
protected boolean sign
protected int digits
protected int exp
protected boolean trailing
public ExponentialFormat()
public ExponentialFormat(int digits)
public ExponentialFormat(int digits, boolean trailing)
public ExponentialFormat(int digits, int exp, boolean sign, boolean trailing)
public int width()
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format
in class DecimalFormat
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.