最负面的双重价值 [英] Most negative double value

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

问题描述

我能得到的最负面双重值是多少?是否总是

保证是-DBL_MAX?如果是这样,为什么(或者更确切地说,在哪里)?


谢谢。

What''s the most negative double value I can get? Is it always
guaranteed to be -DBL_MAX? If so, why (or rather, where)?

Thanks.

推荐答案



Peter Ammon < PE ********* @ rocketmail.com>在消息中写道

"Peter Ammon" <pe*********@rocketmail.com> wrote in message
我能得到的最负面的双重值是多少?它总是保证是-DBL_MAX吗?如果是这样,为什么(或者更确切地说,在哪里)?
What''s the most negative double value I can get? Is it always
guaranteed to be -DBL_MAX? If so, why (or rather, where)?



大多数浮点格式都有一个负标志位,可以设置或

未设置。最自然的系统是最大和最小的

相同的幅度。


Most floating point formats have a negative flag bit which can be set or
unset. The most natural system is for the maximum and minimum to be of the
same magnitude.


Peter Ammon写道:
Peter Ammon wrote:
我能得到的最负面的双重值是多少?它总是保证是-DBL_MAX吗?如果是这样,为什么(或者更确切地说,在哪里)?

谢谢。
What''s the most negative double value I can get? Is it always
guaranteed to be -DBL_MAX? If so, why (or rather, where)?

Thanks.




它是DBL_MIN,在IEEE-754中始终是-DBL_MAX合规系统..


-

#include< stdio.h>

#define p(s)printf( #s" endian")

int main(void){int v = 1; *(char *)& v?p(Little):p(Big); return 0;}


Giannis Papadopoulos
http:// dop .users.uth.gr /

塞萨利大学

电脑&通信工程部门



It is DBL_MIN and it is always -DBL_MAX in IEEE-754 compliant systems..

--
#include <stdio.h>
#define p(s) printf(#s" endian")
int main(void){int v=1;*(char*)&v?p(Little):p(Big);return 0;}

Giannis Papadopoulos
http://dop.users.uth.gr/
University of Thessaly
Computer & Communications Engineering dept.


Papadopoulos Giannis写道:
Papadopoulos Giannis wrote:
Peter Ammon写道:
Peter Ammon wrote:
什么''我能得到的最负面的双重价值?它总是保证是-DBL_MAX吗?如果是这样,为什么(或者更确切地说,在哪里)?

谢谢。
What''s the most negative double value I can get? Is it always
guaranteed to be -DBL_MAX? If so, why (or rather, where)?

Thanks.



它是DBL_MIN,在IEEE-754兼容系统中始终是-DBL_MAX。



It is DBL_MIN and it is always -DBL_MAX in IEEE-754 compliant systems..




我平台上的DBL_MIN是2.2250738585072014e-308这是正面的。


-

拔出碎片回复。



DBL_MIN on my platform is 2.2250738585072014e-308 which is positive.

--
Pull out a splinter to reply.


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

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