最小的正双数 [英] smallest positive double number

查看:78
本文介绍了最小的正双数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,全部:


我想知道32位中C中最小的正双倍数是什么?
CPU?

Rick

Hi, All:

I wonder what is the smallest positive double numbers in C in 32 bit
CPU?

Rick

推荐答案

" go *********** @ gmail.com"写道:
"go***********@gmail.com" wrote:

我想知道32位CPU中C中最小的正双数是多少?

I wonder what is the smallest positive double numbers in C in
32 bit CPU?




我不知道(在你的系统上),但你做到了。 #include< float.h>


-

一些信息链接:

news:news.announce.newusers
http://www.geocities.com/nnqweb/
http://www.catb.org/~ esr / faqs / smart-questions.html
http:/ /www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html



I have no idea (on your system), but you do. #include <float.h>

--
Some informative links:
news:news.announce.newusers
http://www.geocities.com/nnqweb/
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html


" go *********** @ gmail .COM" <去*********** @ gmail.com>写道:
"go***********@gmail.com" <go***********@gmail.com> wrote:
我想知道在32位的CPU中C中最小的正双数是多少?
I wonder what is the smallest positive double numbers in C in 32 bit
CPU?




这个问题无法真正回答。 OTOH,可能有一个非常好的确定且有用的答案。

由于拥有32位CPU,无论如何都无法回答

表示,并不一定意味着你的整数;意味着你的双打大小几乎没有任何价值。对于那个大小范围内的那些双打的

表示,意味着更少。如何表示双重表示是由您的实现决定的,而不是由CPU决定的。

实现可能确实将硬件的某些方面带入了

账户,但相关的那些最有可能是

的布局浮点单元的寄存器,而不是数据总线的大小,
最快或最大整数寄存器,或者CPU的任何方面是什么?b $ b称为32位。 。

对于你现在正在编译的实现,可以非常权威地回答它,但是:来自< float.h>的DBL_MIN是

最小正标准化双值。


Richard



That question cannot really be answered. OTOH, there is probably a very
definite and useful answer.
It cannot be answered because having a "32 bit CPU", whichever that
means, does not necessarily mean anything for your integers; means
nearly nothing for the size of your doubles; and means even less for the
representation of those doubles within that size. How a double is
represented is decided by your implementation, not by the CPU. The
implementation probably does take certain aspects of the hardware into
account, but the relevant ones are most likely to be the layout of the
registers of the floating point unit, not the size of the data bus,
fastest or largest integer registers, or whatever aspect of the CPU is
called "32 bit".
It can be answered quite authoritatively for the implementation you are
compiling on at the moment, though: DBL_MIN, from <float.h>, is the
smallest positive normalised double value.

Richard


去*********** @ gmail.com 写道:
go***********@gmail.com wrote:
我想知道32位CPU中C / />中最小的正双数是多少?
I wonder what is the smallest positive double numbers in C
in 32 bit CPU?




DBL_MIN产生最小的归一化有限可表示值

类型为double。 DBL_EPSILON产生类型为double的最小X的

,这样1.0 + X!= 1.0。


(来源 www.dinkumware.com


这篇关于最小的正双数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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