Minor inconsistency in ulp descriptions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7
    • Component/s: core-libs
    • b01
    • x86
    • windows_xp
    • Verified

      A DESCRIPTION OF THE PROBLEM :
      The description for Math.ulp(float/double) and StrictMath.ulp(float/double) doesn't tell us what ulp stands for, i.e. "unit in the last place".
      This is not a big deal, and the information is in fact available in the description of the Math class (though it's not even mentioned elsewhere in StrictMath), but it represents a slight inconsistency with the description of BigDecimal.ulp(), which does tell us what it stands for.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Returns the size of an ulp, a unit in the last place, of the argument.
      ACTUAL -
      Returns the size of an ulp of the argument.

      URL OF FAULTY DOCUMENTATION :
      http://download.java.net/jdk7/docs/api/java/lang/Math.html#ulp(double)

            Assignee:
            Joe Darcy
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: