#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    USA
    Posts
    12
    Rep Power
    0

    Question datatype to handle large numbers


    Hi All,
    I am trying to code a datatype to handle decimal numbers having more than 12 digits and the related arithmetic functions. I need help on how to accept such a large value and how to store it. Any leads would be appreciated.

    Thanks in advance.

    DA
    :confused:
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,592
    Rep Power
    4207
    You might want to consider the GMP library, which can handle arbitrary precision arithmetic. You can find some information here
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    USA
    Posts
    12
    Rep Power
    0
    Thanks, will work on it.

    DA
    :)

IMN logo majestic logo threadwatch logo seochat tools logo