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...
Type: Posts; User: tarkal
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...
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...
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?
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...
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...
Ok so I'm basically olong the right tracks, I havn't missed any easy solution. Thanks very much.
:)
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...
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.........
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.
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...