adding large numbers

This is a discussion on adding large numbers within the C Programming forums, part of the General Programming Boards category; guys, i would like to ask how can i add very large numbers... thanks...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    7

    adding large numbers

    guys, i would like to ask how can i add very large numbers... thanks

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    +


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    7
    mr. quzah, thanks anyways... it's a complicated program that's why i'm trying to get help from "experts"... but it seems no one wants to help... i'll figure it out anyway... by the way i am only starting to learn C... i'm not a programmer, i am an engineer... i just thought you can give me a better answer than just "+"... thanks anyway for the response...

  4. #4
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Well before you get all upset at quzah, let's consider your original post; Your question is so vague, and this makes me wonder what sort of answer you expected to receive? How 'large' is large? What other ways of adding are there? Beyond the obvious answer, which quzah gave, what are you expecting? Specific questions generally garner specific answers.
    Last edited by kermit; 07-22-2005 at 08:35 PM.

  5. #5
    Registered User
    Join Date
    Jul 2005
    Posts
    7
    actually i would like to create a program that can add a pair of large numbers...it can be any n-digit number up to, say, 100-digit number. my problem is i don't know how i can manipulate that large number...

    say the user inputs:
    input1=2324957349572362476394723947361489734
    input2=4957495729471346158960475234970285034840385 6

    how can i add that me knowing that a data type like "double" is limited in size.

    thanks for replying sir... and i apologize for not stating clearly my question...

  6. #6
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Did you look at this?

  7. #7
    Registered User
    Join Date
    Jul 2005
    Posts
    7
    i'll look on this first... thank you sir.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding numbers with arrays
    By Oliveira in forum C Programming
    Replies: 4
    Last Post: 04-16-2009, 11:25 PM
  2. Problem with adding up numbers from a txt file
    By Leo12 in forum C Programming
    Replies: 1
    Last Post: 02-18-2009, 01:50 PM
  3. Adding numbers in a file
    By andone in forum C Programming
    Replies: 5
    Last Post: 11-23-2006, 01:59 AM
  4. Large numbers...
    By Bruno Couto in forum C Programming
    Replies: 2
    Last Post: 09-30-2005, 08:26 AM
  5. adding odd numbers only
    By CheyenneWay in forum C++ Programming
    Replies: 12
    Last Post: 05-06-2004, 01:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21