全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Special values?

又称: special values (infinity, NaN)

Definition 4.8 High School Computer Science · 第 4 章 — Floating-Point Numbers

The special values of the floating-point format are inf and -inf, the results of an overflow beyond the largest float; nan (“not a number”), the result of an operation that has no meaning, such as ∞−∞\infty - \infty; and -0.0, a zero that remembers it came from the negative side. Every comparison with nan is false, even nan == nan.

在原文中阅读 →