Menu

lond double = double?!?

2002-11-08
2012-09-26
  • Nobody/Anonymous

    hi,
    i need to calculate 300! , which is about 1e+400 or more. i found the information tha long double is handled as double but i NEED long double. how can i activate it? what can i do?
    please help

     
    • Nobody/Anonymous

      I googled a little bit on this, because I was curious and punch drunk from a long week.  You might want to try that as well.

      Given my limited brights, here is what I saw.  There is an issue with representation and display of long doubles related to our friends at Microsoft.  It appears that gcc deals with this display issue by having long double = double, so only 64 bits, and not 80 are supported.

      Of course I amy just have gotten it all wrong...

      Wayne(bozo)

       
    • Nobody/Anonymous

      According to the standard, long double only needs to be as long as double, so I don't know if there is any way to "activate" it. Do you really need floating point numbers, or would integers do?

       
    • Nobody/Anonymous

      i need floating point... :(
      how can i use so long integers? maybe it would be ok to round a little bit. :)

       
    • Nobody/Anonymous

      When I was playing around with it last night, I could get to about 175!.  Cutoff seems to be somewhere about 10^307

      Wayne

       
      • Nobody/Anonymous

        Wayne,

        Do you ever actually do any programming when off work?

        BlakJak ;]

         
    • Nobody/Anonymous

      You makin' fun of me dude?

      ;-)

      Wayne

       
      • Nobody/Anonymous

        Yep!!

        Just amazed at how you can find the time to answer some of these freaky questions!

        BlakJak :]

         
    • Nobody/Anonymous

      Jes doin' my best to let you guys answer the hard ones!

      (I am *not* making fun of you)

      Actually, I am a sick puppy for whom looking at this forum constitutes taking a break.

      (I *am* making fun of me)

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.