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

Add library support for hexadecimal floating-point strings

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • core-libs
    • None
    • tiger
    • generic
    • generic

      C99's hexadecimal floating-point literals provide a convenient and precise way to unambiguously specify a particular floating-point value. This capability would be a useful addition to Java; e.g. the documentation of the constants in Float and Double could use user-interpretible values rather than an opaque integer string. One new method would be required in Float and Double, toHexString, and the parse{Float, Double} and valueOf methods would be have modified accordingly to recognize the new strings.

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: