Thread: better than double

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    103

    better than double

    I want to make a program that calculates pi. The thing is that having only so few digits with double doesn't satisfy me. I want more digits. I know I only have a 32 bit processor so i can't go more than 4294967296 with just one variable. But, wanted to make some kind of a variable that can handle as many digits as possible until my processor maxes out.

    Someone told me this was doable with assembly but I really want to steer clear of assembly since i'm a novice.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You may or may not have a long double type that is bigger than double. But even that probably won't suit your desires; in which case you can either write your own multiple-precision library or use someone else's.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    103
    Is there an open source library that does that?

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying 2-d arrays
    By Holtzy in forum C++ Programming
    Replies: 11
    Last Post: 03-14-2008, 03:44 PM
  2. Conversion From C++ To C
    By dicon in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 02:54 PM
  3. need some help with last part of arrays
    By Lince in forum C Programming
    Replies: 3
    Last Post: 11-18-2006, 09:13 AM
  4. newbie needs help with code
    By compudude86 in forum C Programming
    Replies: 6
    Last Post: 07-23-2006, 08:54 PM
  5. Unknown Math Issues.
    By Sir Andus in forum C++ Programming
    Replies: 1
    Last Post: 03-06-2006, 06:54 PM