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
5 3136 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.)
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
[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=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]
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 inconsistent or whether my understanding of C
is not complete enough.
I would appreciate answers or pointers to answers very much.
|
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 wintel compilers support a 16-byte "long double" (with 33 decimal
digits of accuracy) including proper printf() support. I found some
compilers that did support "long double", but theirs was an 8-byte or
10-byte or 12-byte type with accuracy the...
|
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;
if(x == y) {
printf("x can be represented precisely by a float\n");
}
|
by: maadhuu |
last post by:
hello ,
i would like to know as to why double is more efficient than float .
thanking you,
ranjan.
|
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 methods deal with
doubles and I'm having problems with casting them back to floats.
For example:
(double)0.1f = 0.10000000149011612
I don't need the accuracy of doubles, but the speed of floats would be
benificial, but it seems I'm either...
| |
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, "Built-in == operator should not be
|
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 quesion.
I have begun to familiarize myself here with the gcc compiler in a
win32 environment, in the form of MinGW using both Dev C++ and MSYS as
interfaces.
I have recompiled some old math code that uses long double types
throughout and...
|
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
|
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: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
|
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
------------------
b += (float)(mode *val);
On 32 bit(intel , vs 2003, C++), some watch variables are
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |