Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,196

    Re: How can I do this?

    You can use DecimalFormat, but like I keep saying, that's not going to work for arbitrarily large numbers. If I was an instructor grading this program, I promise I would use Double.MAX_VALUE as a...
  2. Replies
    7
    Views
    1,196

    Re: How can I do this?

    Doubles might seem to work, but if there really is no limit on how many characters your digits can have, double won't cover all cases.

    If you don't believe me, check out Double.MAX_VALUE. What...
  3. Replies
    7
    Views
    1,196

    Re: How can I do this?

    I'm only guessing because I don't have your requirements in front of me, but this is a pretty common homework assignment. You won't be able to multiply arbitrary-sized numbers by using a standard...
  4. Replies
    7
    Views
    1,196

    Re: How can I do this?

    You could probably use BigInteger, but I would guess you're supposed to write code that computes the answer manually. How do you multiply large numbers without a computer?
Results 1 to 4 of 4