c# double float

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • habibo
    New Member
    • Sep 2008
    • 4

    c# double float

    Hi frends
    double float data tybe in c# hase the folling rang
    5*10^(-324) to (1.7)*10^308
    yet it is mentioned in the storage size to be 64 bit how it comes the mentioned range need storag size nearly 1024 bits please to clearify such contraduction as it seem to me and what is the maximum integer size which we can handle in c# , or any other languge becuase i need a languge to handle 200 digit integer thank you in advance
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    I suggest you Google the IEEE standard for floating point (IEEE 754) to learn how floating point numbers are represented.

    When you say "200 digit integer", do you mean
    a) 200 decimal digits or 200 binary digits?
    b) Do you need a resolution of "1" (no fractions, no skipped integers)?
    c) Signed (range from +big to -big) or unsigned (range from +BIG to 0)?

    Do you need this capability for a homework assignment or to solve a real-world problem where the answer has real consequences? (If the latter, then more care is required.)

    Comment

    • habibo
      New Member
      • Sep 2008
      • 4

      #3
      Originally posted by donbock
      I suggest you Google the IEEE standard for floating point (IEEE 754) to learn how floating point numbers are represented.

      When you say "200 digit integer", do you mean
      a) 200 decimal digits or 200 binary digits?
      b) Do you need a resolution of "1" (no fractions, no skipped integers)?
      c) Signed (range from +big to -big) or unsigned (range from +BIG to 0)?

      Do you need this capability for a homework assignment or to solve a real-world problem where the answer has real consequences? (If the latter, then more care is required.)

      Thank you sir
      a.I mean 150-200 decimal
      b.No fraction , no skipped integer
      c.Unsigned range

      I am amathematicien do some research in the field of number factorization i need a programming languge dealing with such number thank you again wating tohear from you

      Comment

      • habibo
        New Member
        • Sep 2008
        • 4

        #4
        [QUOTE=habibo]Thank you sir
        a.I mean 150-200 decimal
        b.No fraction , no skipped integer
        c.Unsigned range

        I am amathematicien do some research in the field of number factorization i need a programming languge dealing with such number in the litretatul of c# i found the information about data size ,thank you again wating to hear from you

        Comment

        • habibo
          New Member
          • Sep 2008
          • 4

          #5
          QUOTE=habibo]Thank you sir
          a.I mean 150-200 decimal
          b.No fraction , no skipped integer
          c.Unsigned range

          I am amathematicien do some research in the field of number factorization i need a programming languge dealing with such number in the litretatul of c# i found the information about data size ,thank you again wating to hear from you[/QUOTE]

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Also read this:

            What Every Computer Scientist Should Know About Floating-Point Operations.

            btw, this is the C and C++ forum; your question was about C# which is an
            entirely different language; it is Microsoft's Java clone and I'm sure it has a
            BigInteger class or equivalent. That class has nothing to do with the IEEE 754
            floating point format.

            kind regards,

            Jos

            Comment

            Working...