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)

:confused:

Printable View

- 04-09-2002bulsquareFloating point numbers
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)

:confused: - 04-09-2002xds4lx
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.

- 04-10-2002vsriharsha
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.