How can i add very large floating point numbers which may be the largest my machine can handle. i.e x+y=z
where x and y are very large floating point numbers(which a machine can support)
How can i add very large floating point numbers which may be the largest my machine can handle. i.e x+y=z
where x and y are very large floating point numbers(which a machine can support)
This was asked a few days ago and all the possible soultoints were disccused use the search button before posting. Here are two threads you can look at: http://www.cprogramming.com/cboard/s...=large+numbers and http://www.cprogramming.com/cboard/s...=large+numbers . I searched for Large Numbers.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein
One way I did for a similar program (for 1000 factorial) was....
I used character arrays (of a finite length) and always arranged the results of multiplications (additions in ur case) into the array and then re-multiplied it with what ever I have to...
Try out the solution...n tell me if u have some problem. I wrote the program long ago and I dont have the code right now...
Regards,
Sriharsha.
Help everyone you can