public static class NumberFormatter.ScientificFormat extends NumberFormat
NumberFormat.Field
FRACTION_FIELD, INTEGER_FIELD
Constructor and Description |
---|
ScientificFormat(NumberFormat df) |
ScientificFormat(NumberFormat df,
NumberFormatter.NotationType type) |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos) |
StringBuffer |
format(long number,
StringBuffer toAppendTo,
FieldPosition pos) |
StringBuffer |
format(Object number,
StringBuffer toAppendTo,
FieldPosition pos) |
int |
getMaximumFractionDigits() |
int |
getMinimumFractionDigits() |
Number |
parse(String source,
ParsePosition parsePosition) |
clone, equals, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumIntegerDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode
format, formatToCharacterIterator, parseObject
public ScientificFormat(NumberFormat df)
public ScientificFormat(NumberFormat df, NumberFormatter.NotationType type)
public StringBuffer format(Object number, StringBuffer toAppendTo, FieldPosition pos)
format
in class NumberFormat
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format
in class NumberFormat
public Number parse(String source, ParsePosition parsePosition)
parse
in class NumberFormat
public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos)
format
in class NumberFormat
public int getMaximumFractionDigits()
getMaximumFractionDigits
in class NumberFormat
public int getMinimumFractionDigits()
getMinimumFractionDigits
in class NumberFormat
Copyright © 2005–2024 OpenHMS. All rights reserved.