BigInteger

Discussion in 'Java' started by David Goulet, Jan 25, 2004.

  1. David Goulet

    David Goulet Guest

    Hi,

    My apps create a BigInteger (length = 1024) and I want to convert it to
    Hexadecimal.
    How can I do that without losing data?

    Thanks a lot

    David
    David Goulet, Jan 25, 2004
    #1
    1. Advertising

  2. David Goulet

    Jim Guest

    On Sun, 25 Jan 2004 17:20:00 -0500, "David Goulet"
    <> wrote:

    >Hi,
    >
    >My apps create a BigInteger (length = 1024) and I want to convert it to
    >Hexadecimal.
    >How can I do that without losing data?
    >
    >Thanks a lot
    >
    >David
    >


    String hexData = aBigInteger.toString(16);

    Jim
    Jim, Jan 25, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. pete kirkham
    Replies:
    5
    Views:
    460
    pete kirkham
    Aug 13, 2003
  2. xarax
    Replies:
    6
    Views:
    8,606
    xarax
    Sep 8, 2003
  3. rmcnutt

    BigInteger on 64 bit platform

    rmcnutt, Feb 1, 2004, in forum: Java
    Replies:
    8
    Views:
    483
    Neil Campbell
    Feb 4, 2004
  4. nick
    Replies:
    0
    Views:
    898
  5. nick
    Replies:
    1
    Views:
    31,768
    Eric Sosman
    Oct 26, 2004
Loading...

Share This Page