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

RFE: Add IEEE 754 Recommended Functions to Math, StrictMath

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0, 5.0
    • core-libs
    • generic
    • generic

      Name: yyT116575 Date: 01/19/2001


      ~/project/visMineBench>java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      Java should incorporate the following methods into java.lang.Math:

            copySign(x,y) returns x with the sign of y.
            scalb(y,n) returns y * 2n for integers n without
                           explicitly computing 2n.
            nextAfter(x,y) returns the next representable neighbor of x in the
                           direction towards y.
            unordered(x,y) Returns true is one of its arguments is unordered
                           with respect to the other.
                           This occurs when at least one is a NaN.
            fpClass(x) Returns an integer that indicates which of the
                           nine "kinds" of IEEE floating-point numbers x is.
            logb(x) Returns the unbiased exponent of x.

      These descriptions are copied from:
      http://math.nist.gov/javanumerics/reports/jgfnwg-01.html

      It also says there that IEEE 754 recommends these methods.
      (Review ID: 115478)
      ======================================================================

            darcy Joe Darcy
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: