浮点数据类型在C范围是多少? [英] Ranges of floating point datatype in C?

查看:154
本文介绍了浮点数据类型在C范围是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读一个C的书,讲的浮点的范围,笔者给表:

I am reading a C book, talking about ranges of floating point, the author gave the table:

我不知道在列的数字最小正和最大的价值从何而来。

I dont know where the numbers in the columns Smallest Positive and Largest Value come from.

推荐答案

这些数字来自 IEEE-754 标准,它定义浮点数的标准重新presentation。在链路维基百科文章解释的如何在这些范围知道的比特数用于到达为标志,尾数和指数。

These numbers come from the IEEE-754 standard, which defines the standard representation of floating point numbers. Wikipedia article at the link explains how to arrive at these ranges knowing the number of bits used for the signs, mantissa, and the exponent.

这篇关于浮点数据类型在C范围是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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