449,077 Members | 921 Online
Need help? Post your question and get tips & solutions from a community of 449,077 IT Pros & Developers. It's quick & easy.

# c# double float

 P: 4 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 Sep 29 '08 #1
5 Replies

 Expert 100+ P: 2,404 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.) Sep 29 '08 #2

 P: 4 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 Sep 30 '08 #3

 P: 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 Sep 30 '08 #4

 P: 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[/quote] Sep 30 '08 #5

 Expert 10K+ P: 11,448 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 Sep 30 '08 #6