Package weka.core.matrix
Class FlexibleDecimalFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
weka.core.matrix.FlexibleDecimalFormat
- All Implemented Interfaces:
Serializable
,Cloneable
,RevisionHandler
- Version:
- $Revision: 10835 $
- Author:
- Yong Wang
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field, NumberFormat.Style
-
Field Summary
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
-
Constructor Summary
ConstructorDescriptionFlexibleDecimalFormat
(double d) FlexibleDecimalFormat
(int digits) FlexibleDecimalFormat
(int digits, boolean trailing) FlexibleDecimalFormat
(int digits, boolean exp, boolean trailing, boolean grouping) -
Method Summary
Modifier and TypeMethodDescriptionformat
(double number, StringBuffer toAppendTo, FieldPosition pos) formatString
(String str) Returns the revision string.void
grouping
(boolean grouping) boolean
needExponentialFormat
(double d) void
update
(double d) int
width()
Methods inherited from class java.text.DecimalFormat
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
Methods inherited from class java.text.NumberFormat
format, format, getAvailableLocales, getCompactNumberInstance, getCompactNumberInstance, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnly
Methods inherited from class java.text.Format
format, parseObject
-
Constructor Details
-
FlexibleDecimalFormat
public FlexibleDecimalFormat() -
FlexibleDecimalFormat
public FlexibleDecimalFormat(int digits) -
FlexibleDecimalFormat
public FlexibleDecimalFormat(int digits, boolean trailing) -
FlexibleDecimalFormat
public FlexibleDecimalFormat(int digits, boolean exp, boolean trailing, boolean grouping) -
FlexibleDecimalFormat
public FlexibleDecimalFormat(double d)
-
-
Method Details
-
update
public void update(double d) -
needExponentialFormat
public boolean needExponentialFormat(double d) -
grouping
public void grouping(boolean grouping) -
format
- Overrides:
format
in classDecimalFormat
-
width
public int width() -
formatString
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-