weka.core.matrix
Class FloatingPointFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by java.text.DecimalFormat
              extended by weka.core.matrix.FloatingPointFormat
All Implemented Interfaces:
Serializable, Cloneable, RevisionHandler

public class FloatingPointFormat
extends DecimalFormat
implements RevisionHandler

Class for the format of floating point numbers

Version:
$Revision: 8034 $
Author:
Yong Wang
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field
 
Field Summary
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
FloatingPointFormat()
          Default constructor
FloatingPointFormat(int digits)
           
FloatingPointFormat(int w, int d)
           
FloatingPointFormat(int w, int d, boolean trailingZeros)
           
 
Method Summary
 StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
           
 String getRevision()
          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, 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
 
Methods inherited from class java.text.Format
format, parseObject
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

format

public StringBuffer format(double number,
                           StringBuffer toAppendTo,
                           FieldPosition pos)
Overrides:
format in class DecimalFormat

pattern

public static String pattern(int w,
                             int d)

width

public int width()

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.