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

Add constants related to floating-point fields to Float and Double

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      When dealing with floating-point numbers, at times it is helpful and necessary to manipulate the sign, significand, and exponent fields.This is eased by having bit masks and other related constants to isolate the fields.

      Such constants are available in the JDK-internal FloatConsts and DoubleConsts classes, but are not part of the public API. Code review of JDK-8149896 included a request to add such a public API (http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-February/038886.html).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rgiulietti Raffaello Giulietti
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: