Search:

Type: Posts; User: tarkal

Search: Search took 0.09 seconds.

  1. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    Thanks Mr.777, I'm affraid I didn't really understand you explanation! :confused: I actually have no need or intention to create variables at run time. As you say there are plenty of alternative...
  2. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    Thanks for that. I went off on a bit of a tangent and after extensive experimenting (and before checking back here to find your answer) i tried several alternative solutions. Turns out I can't create...
  3. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    How would I go about re-assigning a value to an immutable object? Would I have to create a new BigInteger for every time the loop is excecuted?
  4. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    Thanks I'll try that next.

    First its getting late and I should probably call it a day but I'm still fighting this BigDecimal issue... I can't use long for the 100! so I have had tio move to...
  5. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    On the topic of BigDecimal. How would you go about computing a number that exceeds the memory limit of the computer?

    I'm trying to calculate 100! (ie. 100 x 99 x 98 x 97 .... 3 x 2 x 1), but this...
  6. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    Ok so I'm basically olong the right tracks, I havn't missed any easy solution. Thanks very much.

    :)
  7. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    I'm working on two seperate problems both using BigDecimal. One of them is simply to calculate the product of the digits that make up 2 to the power of 1000. I've successfully done this but I was...
  8. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    Sorry...

    Ok, I have a number that is 1000 digits long. its too big to be of type long so I have had to make it a BigDecimal. Lets say for example that the number starts:

    9837425678934653.........
  9. Replies
    17
    Views
    2,211

    Re: Break down BigDecimal to individual values

    Sorry: I need to work with the individual values as int so if possible I'm trying to avoid going from BigDecimal > String (or char[] etc.) > int.
  10. Replies
    17
    Views
    2,211

    Break down BigDecimal to individual values

    Assuming that I have a BigDecimal. What would be the best apprach to breaking that down into indivual digits so I can utilise the individual values. I know there are several ways this can be done but...
Results 1 to 10 of 10