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

Provide getMagnitude method for BigInteger

XMLWordPrintable

    • generic
    • generic

      Name: krT82822 Date: 08/10/99


      java.math.BigInteger should have a method called getMagnitude()
      which returns a byte array. It should produce data that can
      be passed back to the BigInteger(int signum, byte[] magnitude)
      constructor.

      This would be more efficient than calling
      biginteger.abs().toByteArray(), and that call
      does not always produce the identical array.

      Also, it is good practice to provide methods that
      extract the data from an object that was used to
      construct it.
      (Review ID: 93363)
      ======================================================================
      ###@###.### 10/28/04 01:03 GMT

            darcy Joe Darcy
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: