Class NumberFormats

java.lang.Object
org.yamcs.studio.data.vtype.NumberFormats

public final class NumberFormats extends Object
Factory class for frequently used NumberFormats.
  • Field Details

    • DF_SYMBOLS

      public static final DecimalFormatSymbols DF_SYMBOLS
      Localized DecimalFormat symbols.
    • TO_STRING_FORMAT

      public static final NumberFormat TO_STRING_FORMAT
      Uses the standard, but localized, text representation (toString) for numbers
  • Constructor Details

    • NumberFormats

      public NumberFormats()
  • Method Details

    • 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