Thread: big integer

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    30

    big integer

    hi!
    does any one have a prewritten class for handling really big integers(100 digits....).
    Just basic operations
    Its really helpful in coding contests, like java has the inbuilt BigInteger class.

    thanx in advance.
    Cheers!

    Ps: please paste the code,as I am not able to download anything.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by eklavya8 View Post
    Ps: please paste the code,as I am not able to download anything.
    I'm pretty sure that any pre-written class to do this would be slightly larger than what we would want to have posted here.

    A member with the user-name iMalc has a big integer class, which if you would like to download it, is here: http://homepages.ihug.co.nz/~aurora7...ul_Classes.htm

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    http://gmplib.org/

    More than just basic operations, but also in all likelyhood considerably faster than anything any individual member here has produced.

    LGPL, though. Be aware of the conditions.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. big integer calculator! addition/subtraction algorithm
    By counton in forum C Programming
    Replies: 12
    Last Post: 11-22-2007, 03:42 AM
  2. Replies: 7
    Last Post: 08-19-2007, 08:10 AM
  3. Direct3D problem
    By cboard_member in forum Game Programming
    Replies: 10
    Last Post: 04-09-2006, 03:36 AM
  4. Range of an integer.
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 03-10-2002, 09:43 AM