TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What is the ‘range’ of a number type?

8 点作者 tgymnich超过 3 年前

2 条评论

synack超过 3 年前
This is one of the things Ada does really well. The standard says that the range of Float is implementation defined, but a program can reference the &#x27;First and &#x27;Last attributes of the Float type to determine the actual bounds for the compiler and runtime.<p><a href="http:&#x2F;&#x2F;www.ada-auth.org&#x2F;standards&#x2F;2xaarm&#x2F;html&#x2F;AA-3-5-7.html" rel="nofollow">http:&#x2F;&#x2F;www.ada-auth.org&#x2F;standards&#x2F;2xaarm&#x2F;html&#x2F;AA-3-5-7.html</a>
quantified超过 3 年前
Better title: “What is the range of a number type for types recognized by C++”?<p>The range of numbers represented by an IEEE-754 floating-point is discontinous on the number line at any given precision. So there are a variety of possible answers with varying usefulness.