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:
      129

      Description

      LargeInteger.valueOf("100000000000000000000").toString() yields
      1000000000000000000000 instead of
      100000000000000000000 .
      The bug is activated on some values with many zeroes.
      Fix for the problem: the last line of
      LargeInteger.write(LargeInteger li, int radix, int divisor, Appendable out)
      is

      return TypeFormat.format(rem, radix, out); // Writes low.

      but should be replaced with

      if (0 != rem)

      { return TypeFormat.format(rem, radix, out); // Writes low. }

      else

      { return out; }

      The problem is that the last zero is written twice if 0 == rem.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: