Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4194457

RFE: Method to select scientific notation in DecimalFormat

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      Name: nl37777 Date: 12/02/98


      In the DecimalFormat class there is no way to
      obtain the scientific notation of a number
      (i.e. ddd.fffEnn) other then by using an explicit
      pattern. The choice between the normal and the
      scientific notation is the only one characteristics
      of formatting which may not be set by a method;
      all the others are (e.g. min/max nr of integral
      and fractional digits, grouping, etc.).
      Moreover, the usage of a pattern for obtaining
      the scientific notation is difficult if the
      cultural conventions of the current locale must
      be followed: there is a need to obtain first
      the current patter, and then to edit it to insert
      the appropriate "Enn" sub-patters (both in the
      positive and negative ones) before using it.
      (Review ID: 43599)
      ======================================================================

            okutsu Masayoshi Okutsu
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: