Package weka.core.matrix
Class FloatingPointFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
weka.core.matrix.FloatingPointFormat
- All Implemented Interfaces:
Serializable
,Cloneable
,RevisionHandler
Class for the format of floating point numbers
- Version:
- $Revision: 8034 $
- 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
ConstructorDescriptionDefault constructorFloatingPointFormat
(int digits) FloatingPointFormat
(int w, int d) FloatingPointFormat
(int w, int d, boolean trailingZeros) -
Method Summary
Modifier and TypeMethodDescriptionformat
(double number, StringBuffer toAppendTo, FieldPosition pos) Returns the revision string.static String
pattern
(int w, int 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
-
FloatingPointFormat
public FloatingPointFormat()Default constructor -
FloatingPointFormat
public FloatingPointFormat(int digits) -
FloatingPointFormat
public FloatingPointFormat(int w, int d) -
FloatingPointFormat
public FloatingPointFormat(int w, int d, boolean trailingZeros)
-
-
Method Details
-
format
- Overrides:
format
in classDecimalFormat
-
pattern
-
width
public int width() -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-