jscience
  1. jscience
  2. JSCIENCE-38

Real number unnecessary error augmentation at creation.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      38

      Description

      Considering the following real creation:

      Real r = Real.valueOf("1200±1E-3");
      LargeInteger error = r.getError();
      int exp = r.getExponent(); // Exponent for both real mantissa and error

      // Double representing the error.
      double err = error.doubleValue() * Math.pow(10, exp);

      System.out.println(err);

      > 0.00100001

      The error should be exactly equal to 0.001

        Activity

        Hide
        dautelle added a comment -

        Fixed in 4.3.0

        Show
        dautelle added a comment - Fixed in 4.3.0

          People

          • Assignee:
            jscience-issues
            Reporter:
            dautelle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: