org.epics.pvmanager.util
Class NumberFormats

java.lang.Object
  extended by org.epics.pvmanager.util.NumberFormats

public final class NumberFormats
extends java.lang.Object

NumberFormat factory.

Author:
carcassi

Constructor Summary
NumberFormats()
           
 
Method Summary
static java.text.NumberFormat format(int precision)
          Returns a number format that formats a number with the given number of precision digits.
static java.text.NumberFormat toStringFormat()
          Returns the NumberFormat that uses the standard text representation (toString) for numbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormats

public NumberFormats()
Method Detail

format

public static java.text.NumberFormat format(int precision)
Returns a number format that formats a number with the given number of precision digits. Parsing is not currently supported.

Parameters:
precision - number of digits past the decimal point
Returns:
a number format

toStringFormat

public static java.text.NumberFormat toStringFormat()
Returns the NumberFormat that uses the standard text representation (toString) for numbers. Parsing is not currently supported.

Returns:
a number format