Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      119

      Description

      FloatingPoint.sqrt(FloatingPoint.ZERO) throws an Exception instead of returning 0.
      I suggest adding
      if (isZero()) return ZERO;
      to FloatingPoint.sqrt, and
      if (this == ZERO) return ZERO;
      to Real.

        Activity

        Hide
        hstoerr added a comment -

        This should be a patch instead of an issue, since I included a fix.
        Tests to verify the fix are included in issue 120.

        Show
        hstoerr added a comment - This should be a patch instead of an issue, since I included a fix. Tests to verify the fix are included in issue 120.

          People

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

            Dates

            • Created:
              Updated: