Package org.yamcs.studio.data.vtype
Class NumberFormats
java.lang.Object
org.yamcs.studio.data.vtype.NumberFormats
Factory class for frequently used NumberFormats.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DecimalFormatSymbols
LocalizedDecimalFormat
symbols.static final NumberFormat
Uses the standard, but localized, text representation (toString) for numbers -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NumberFormat
format
(int precision) Returns a number format that formats a number with the given number of precision digits.
-
Field Details
-
DF_SYMBOLS
LocalizedDecimalFormat
symbols. -
TO_STRING_FORMAT
Uses the standard, but localized, text representation (toString) for numbers
-
-
Constructor Details
-
NumberFormats
public NumberFormats()
-
-
Method Details
-
format
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
-