You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
such as their minimum and maximum representable value,
can be queried using the facilities in the standard library headers
To me this implies existence of a unique maximum representable value of float float values are not totally ordered, NaN is not comparable with anything
In terms of partial orders both +inf and all NaN values would be considered maximal elements
Same thought is applicable to other floating-point types, and to minimum instead of maximum
I feel that a person that is not familiar with IEEE-754 could come to wrong conclusions regarding floating-point types
I don't think a deep elaboration is needed or necessary
A simple finite word addition could be sufficient, would match max() behaviour of std::numeric_limits
The text was updated successfully, but these errors were encountered:
This is a note, and the mentioned facilities do allow to query for NaNs as well as infinities and finite min/max values, so I'm not seeing anything wrong here. We don't mention a max facility in particular.
draft/source/basic.tex
Lines 5065 to 5067 in 384d36a
To me this implies existence of a unique maximum representable value of
float
float
values are not totally ordered,NaN
is not comparable with anythingIn terms of partial orders both
+inf
and allNaN
values would be considered maximal elementsSame thought is applicable to other floating-point types, and to minimum instead of maximum
I feel that a person that is not familiar with IEEE-754 could come to wrong conclusions regarding floating-point types
I don't think a deep elaboration is needed or necessary
A simple
finite
word addition could be sufficient, would matchmax()
behaviour ofstd::numeric_limits
The text was updated successfully, but these errors were encountered: