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

XMLWordPrintable

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

      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).

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

              Created:
              Updated:
              Resolved: