c中是否有比双倍更大的数据类型? [英] Is there a bigger data type in c than the double one?

查看:84
本文介绍了c中是否有比双倍更大的数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C中的数据类型是否比双(64位)的数据类型更好?
或旧的长双(80位)?

我'我想在我的数学应用程序中添加精度,但是我无法想象

如何。

非常感谢。

Is there a bigger, mathematical, data type in C than the double (64 bit) one
or the old long double (80 bit)?
I''d like to add precision to my mathematical application, but I can''t figure
out how.
Thanks alot.

推荐答案

>在C中是否存在比双(64位)
>Is there a bigger, mathematical, data type in C than the double (64 bit) one
或旧的长双(80位)更大的数学数据类型?


C双打不保证是64位。

long double不保证是80位,为什么它是* OLD *

long double?


您是否使用超过80位的浮点硬件

来表示一个数字?

我想为我的数学应用程序添加精度,但我无法确定如何。
or the old long double (80 bit)?
C doubles are not guaranteed to be 64 bits.
long double is not guaranteed to be 80 bits, and why is it the *OLD*
long double?

Do you have floating-point hardware that uses more than 80 bits
to represent a number?
I''d like to add precision to my mathematical application, but I can''t figure
out how.




一个int可以想象是128位,但如果你的机器有128位的操作,那么128位整数类型很可能很长。


Gordon L .Burditt



An int could conceivably be 128 bits, although if your machine has
128-bit operations, the 128-bit integer type is more likely long long.

Gordon L. Burditt


" Gordon Burditt" <去*********** @ burditt.org> ha scritto nel messaggio

news:co ******** @ library1.airnews.net ...
"Gordon Burditt" <go***********@burditt.org> ha scritto nel messaggio
news:co********@library1.airnews.net...
是否有一个更大的数学数据类型C比双(64位)
一个旧的长双(80位)?
Is there a bigger, mathematical, data type in C than the double (64 bit) oneor the old long double (80 bit)?



C双打不保证是64比特。
long double不保证是80位,为什么它是* OLD *
长的双倍?

你有浮点硬件使用超过80位
代表一个数字?



C doubles are not guaranteed to be 64 bits.
long double is not guaranteed to be 80 bits, and why is it the *OLD*
long double?

Do you have floating-point hardware that uses more than 80 bits
to represent a number?

我想在我的数学应用程序中添加精度,但我不能用b $ b来计算。
I''d like to add precision to my mathematical application, but I can''t figureout how.



一个int可以想象是128位,但如果你的机器有128位操作,128位整数类型更可能很长。

Gordon L. Burditt



An int could conceivably be 128 bits, although if your machine has
128-bit operations, the 128-bit integer type is more likely long long.

Gordon L. Burditt




我的机器是使用Windowsme的p4 pc;

我想在结果示例中添加小数而不是

17位小数30或40.



My machine is a p4 pc using Windowsme;
I would like to add decimals to my results example instead of
17 decimals 30 or 40.


Daniel Fadlun写道:
Daniel Fadlun wrote:
" Gordon Burditt" <去*********** @ burditt.org> ha scritto nel messaggio
新闻:co ******** @ library1.airnews.net ...
"Gordon Burditt" <go***********@burditt.org> ha scritto nel messaggio
news:co********@library1.airnews.net...
是否有一个更大的,数学的,数据类型的C比双(64位)
或旧的长双(80位)?
Is there a bigger, mathematical, data type in C than the double (64 bit)
one
or the old long double (80 bit)?



C双打是不保证是64位。
long double不保证是80位,为什么它是* OLD *
长的双倍?

你有浮点吗?使用超过80位的硬件代表一个数字?



C doubles are not guaranteed to be 64 bits.
long double is not guaranteed to be 80 bits, and why is it the *OLD*
long double?

Do you have floating-point hardware that uses more than 80 bits
to represent a number?

我想为我的数学应用添加精度,但我可以''图
如何。
I''d like to add precision to my mathematical application, but I can''t
figure
out how.



一个int可以想象是128位,但如果你的机器有128位操作,128-比特整数类型更可能很长。

Gordon L. Burditt



An int could conceivably be 128 bits, although if your machine has
128-bit operations, the 128-bit integer type is more likely long long.

Gordon L. Burditt



我的机器是使用Windowsme的p4 pc;
我想将小数添加到我的结果示例中而不是o f
17位小数30或40。


My machine is a p4 pc using Windowsme;
I would like to add decimals to my results example instead of
17 decimals 30 or 40.




这是100-133个有效位数。 H /格式数字

VAX可以接近低端(我不记得只是

它的128位中有多少是指数),但我''我不知道

任何使用H格式的C编译器。


但是,最大的问题是为什么你想要这么多? />
位数?您可以在小数点后四十位分配一个加号或者减号

的一个波动是什么意思?如果你想要计算Angstrom中的宇宙半径

单位,那么四十个地方远远超过你的需要。


-
Er ********* @ sun.com



That''s 100-133 significand bits. H-format numbers on
the VAX could approach the lower end (I don''t recall just
how many of its 128 bits were exponent), but I''m not aware
of any C compiler that made use of H-format.

The big question, though, is why do you want so many
digits? What meaning could you assign to a plus-or-minus
one fluctuation in the fortieth decimal place? If you''re
trying to calculate the radius of the Universe in Angstrom
units, forty places are far more than you need.

--
Er*********@sun.com


这篇关于c中是否有比双倍更大的数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆