Find the answer to your Linux question:
Results 1 to 2 of 2
hi , i need big float number , how much big float number can i get in GCC/G++ ? is it possible double double double x = 22/7.0 ?(3.142.........) how ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2003
    Location
    x1234
    Posts
    4

    big float number required


    hi , i need big float number , how much big float number can i get

    in GCC/G++ ?

    is it possible double double double x = 22/7.0 ?(3.142.........)

    how much digits can i get AT MOST after decimal ?

    can you give a small code how can i get a precised big float number after decimal (as big as possible) ?

    thanks

  2. #2
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    the largest float you can get with C is a long double... i'm not sure what the limits on a long double are, but a double is 2.2E-308 to 1.8E308... and the precision on that is 19 digits...
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •