Skip to content

Commit 17545cb

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

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/basic.tex

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5559,6 +5559,24 @@
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 non-finite values
5566+
\begin{itemize}
5567+
\item infinity,
5568+
\item a set of quiet ``Not a Number'' values, and
5569+
\item a set of signaling ``Not a Number'' values.
5570+
\end{itemize}
5571+
For any of the above (including zero),
5572+
a floating-point type may either represent a single value or
5573+
two distinct values with negative and positive sign.
5574+
\begin{note}
5575+
A floating-point type which adheres to \IsoFloatUndated{}
5576+
is capable of representing a negative and positive variant
5577+
of all the above\iref{numeric.limits.members}.
5578+
\end{note}
5579+
55625580
\pnum
55635581
The minimum range of representable values for a floating-point type is
55645582
the most negative finite floating-point number representable

0 commit comments

Comments
 (0)