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
public class FlexibleDecimalFormat
- extends DecimalFormat
- implements RevisionHandler
- Version:
- $Revision: 8034 $
- Author:
- Yong Wang
- See Also:
- Serialized Form
| 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, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern |
| Methods inherited from class java.text.NumberFormat |
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly |
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)
update
public void update(double d)
needExponentialFormat
public boolean needExponentialFormat(double d)
grouping
public void grouping(boolean grouping)
format
public StringBuffer format(double number,
StringBuffer toAppendTo,
FieldPosition pos)
- Overrides:
format in class DecimalFormat
width
public int width()
formatString
public StringBuffer formatString(String str)
getRevision
public String getRevision()
- Returns the revision string.
- Specified by:
getRevision in interface RevisionHandler
- Returns:
- the revision
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.