How to code large integer constants

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elephunkies101
    New Member
    • Dec 2011
    • 1

    #1

    How to code large integer constants

    I currently need your sincere help...

    I'm now going to run a program in C that executes large numbers that goes like this...

    2^1000;
    9.2345675432e99 9;

    and iterations likewise...

    loopCount = 200, 000, 000;
    limit = 3^1000;

    It just say "warning: integer constant is too large for 'long type', even if use 'long unsigned int' types...

    What should I do?? Anyone...

    (below is my attachment of my work (jpeg file)).. tnx
    Attached Files
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    Maybe the GNU Multiple Precision Arithmetic Library (GMP) can help you.

    Comment

    Working...