Thread: Floating point numbers

  1. #1
    Registered User
    Join Date
    Apr 2002

    Question Floating 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)

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    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: and . I searched for Large Numbers.
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  3. #3
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002

    Thumbs up

    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...

    Help everyone you can

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. For the numerical recipes in C types!
    By Smattacus in forum C Programming
    Replies: 5
    Last Post: 10-28-2008, 07:57 PM
  2. Replies: 7
    Last Post: 12-02-2007, 05:55 AM
  3. floating point operators
    By DavidP in forum A Brief History of
    Replies: 15
    Last Post: 10-22-2003, 07:53 PM
  4. 2 questions about floating point and %
    By ams80 in forum C Programming
    Replies: 2
    Last Post: 08-14-2002, 10:55 AM
  5. Floating point faster than fixed-point
    By VirtualAce in forum A Brief History of
    Replies: 5
    Last Post: 11-08-2001, 11:34 PM