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

Minor inconsistency in ulp descriptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • 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)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: