Skip to content

Commit 20426f9

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/basic.tex

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5559,6 +5559,21 @@
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+
Depending on the implementation-defined value representation for the type,
5565+
it may additionally represent the finite value negative zero,
5566+
as well as the non-finite values
5567+
\begin{itemize}
5568+
\item negative and positive infinity,
5569+
\item a set of negative and positive quiet ``Not a Number'' values, and
5570+
\item a set of negative and positive signaling ``Not a Number'' values.
5571+
\end{itemize}
5572+
\begin{note}
5573+
A floating-point type which adheres to \IsoFloatUndated{}
5574+
is capable of representing all of the above\iref{numeric.limits.members}.
5575+
\end{note}
5576+
55625577
\pnum
55635578
The minimum range of representable values for a floating-point type is
55645579
the most negative finite floating-point number representable

0 commit comments

Comments
 (0)