Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Special values?

Ook bekend als: special values (infinity, NaN)

Definition 4.8 High School Computer Science · Hoofdstuk 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.

Lees in het hoofdstuk →