Skip to content

Commit 0dcac5f

Browse files
committed
[basic.fundamental] Exhaustively list what values can be represented by floating-point types
1 parent ff706ad commit 0dcac5f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/basic.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5559,6 +5559,22 @@
55595559
the object and value representations and accuracy of operations
55605560
of floating-point types are \impldef{representation of floating-point types}.
55615561

5562+
\pnum
5563+
A floating-point type shall at least represent a subset of rational numbers
5564+
which includes (positive) zero.
5565+
Depending on the implementation-defined value representation for the type,
5566+
it may additionally represent the finite value negative zero,
5567+
as well as the non-finite values
5568+
\begin{itemize}
5569+
\item negative and positive infinity,
5570+
\item a set of negative and positive quiet ``Not a Number'' values, and
5571+
\item a set of negative and positive signaling ``Not a Number'' values.
5572+
\end{itemize}
5573+
\begin{note}
5574+
A floating-point type which adheres to \IsoFloatUndated{}
5575+
is capable of representing all of the above\iref{numeric.limits.members}.
5576+
\end{note}
5577+
55625578
\pnum
55635579
The minimum range of representable values for a floating-point type is
55645580
the most negative finite floating-point number representable

0 commit comments

Comments
 (0)