473,505 Members | 15,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c# double float

4 New Member
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 3123
donbock
2,426 Recognized Expert Top Contributor
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
habibo
4 New Member
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
habibo
4 New Member
[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
habibo
4 New Member
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
JosAH
11,448 Recognized Expert MVP
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

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4170
by: Michael Mair | last post by:
Hi there, actually, I have posted the same question in g.g.help. As there were no answers, I am still not sure whether this is a bug or only something open to the compiler that is seemingly...
22
3677
by: bq | last post by:
Hello, Two questions related to floating point support: What C compilers for the wintel (MS Windows + x86) platform are C99 compliant as far as <math.h> and <tgmath.h> are concerned? What...
9
2390
by: Sisyphus | last post by:
Hi, I have some software that does the following (in an attempt to determine whether the double x, can be represented just as accurately by a float): void test_it(double x) { float y = x;...
13
3320
by: maadhuu | last post by:
hello , i would like to know as to why double is more efficient than float . thanking you, ranjan.
6
7252
by: James Thurley | last post by:
According to the docs, floats are 32 bit and doubles are 64 bit. So using floats should be faster than using doubles on a 32 bit processor, and my tests confirm this. However, most of the Math...
44
16276
by: Daniel | last post by:
I am grappling with the idea of double.Epsilon. I have written the following test: public void FuzzyDivisionTest() { double a = 0.33333d; double b = 1d / 3d; Assert.IsFalse(a == b,...
67
9816
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the...
60
7158
by: Erick-> | last post by:
hi all... I've readed some lines about the difference between float and double data types... but, in the real world, which is the best? when should we use float or double?? thanks Erick
2
13429
by: tkirankumar | last post by:
Hi all, uname -a SunOS cbmrsd1a1 5.10 Generic_118833-17 sun4us sparc FJSV,GPUZC-M g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs Configured with:...
13
6153
by: Shirsoft | last post by:
I have a 32 bit intel and 64 bit AMD machine. There is a rounding error in the 8th digit. Unfortunately because of the algorithm we use, the errors percolate into higher digits. C++ code is...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.