Thread: Program to Calculate Pi

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    14

    Program to Calculate Pi

    I want to start making a program that calculates pi to an amount of digits specified by the user. I need to know how to make a number data type big enough to store the amount of digits i need. I want to go up to at least 1000 digits.

    "floats only have 7 digits of precision, and double, only 14."

    any help at all would be appreciated.
    yo

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    76
    I don't think there is a actual typt thay goes up to a thousand digits of precision. So the only advice I can give you is to make one. By either using a struct or a class.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program to Calculate Molar Mass
    By ebrayer in forum C Programming
    Replies: 2
    Last Post: 08-02-2008, 03:20 PM
  2. C Program to calculate the FILE Size Sytem in Unix
    By anwar_pat in forum C Programming
    Replies: 6
    Last Post: 02-23-2006, 10:17 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Need help with small program to calculate a salary
    By Guti14 in forum C++ Programming
    Replies: 13
    Last Post: 01-11-2004, 05:54 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM