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

Forward and Inverse operations accuracy.

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      Although this relates back to floating point flow errors, it needs to be the case that for float and double values, the digit beyond the final smallest decimal value needs to be rounded up at 0.xxxxxx5 and carried forward if needed, so that operational and inverse functions remain accurate.



      JUSTIFICATION :
      So that equality tests, == or !=, as well as object tests,
      .equals(), will successfully and appropriately detect results
      to be where mathematics should be.

      To enhance the mathematical accuracy and quality of any java program.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      (pow(sqrt(2),2) == 2) //true

      (toDegrees(asin(sin(toRadians(30))))==30) //true.

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

              Created:
              Updated:
              Resolved: