org.epics.pvmanager.util
Class NumberFormats
java.lang.Object
org.epics.pvmanager.util.NumberFormats
public final class NumberFormats
- extends Object
NumberFormat factory.
- Author:
- carcassi
Method Summary |
static NumberFormat |
format(int precision)
Returns a number format that formats a number with the given
number of precision digits. |
static 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 |
NumberFormats
public NumberFormats()
format
public static 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 NumberFormat toStringFormat()
- Returns the NumberFormat that uses the standard text representation
(toString) for numbers. Parsing is not currently supported.
- Returns:
- a number format
Copyright © 2011. All Rights Reserved.