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
Original bug ID: 4151 Reporter: Colas Status: closed (set by @xavierleroy on 2009-08-28T09:06:53Z) Resolution: fixed Priority: normal Severity: minor Fixed in version: 3.11.2+dev Category: documentation Monitored by:@dbuenzli
Bug description
min and max behaviour on the uncomparable float NaN is not documented.
From the documentation on compare, "max 0. nan" may:
raise an error: "the comparison predicates treat nan as different from any other float value, including itself"
return 0.: "compare treats nan as equal to itself and less than any other float value"
or return nan: "any operation with nan as argument returns nan as result"
(introduction of Floating-point arithmetic section)
It does none of the above, and change between 3.08.3 and 3.09.2 without being in the changelog:
Objective Caml version 3.08.3
max 0. nan;;
: float = nan
max nan 0.;;
: float = 0.
min 0. nan;;
: float = nan
min nan 0.;;
: float = 0.
Objective Caml version 3.09.2
max 0. nan;;
: float = nan
max nan 0.;;
: float = 0.
min 0. nan;;
: float = 0.
min nan 0.;;
: float = nan
--
Colas
The text was updated successfully, but these errors were encountered:
Original bug ID: 4151
Reporter: Colas
Status: closed (set by @xavierleroy on 2009-08-28T09:06:53Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 3.11.2+dev
Category: documentation
Monitored by: @dbuenzli
Bug description
min and max behaviour on the uncomparable float NaN is not documented.
From the documentation on compare, "max 0. nan" may:
or return nan: "any operation with nan as argument returns nan as result"
(introduction of Floating-point arithmetic section)
It does none of the above, and change between 3.08.3 and 3.09.2 without being in the changelog:
Objective Caml version 3.08.3
max 0. nan;;
max nan 0.;;
min 0. nan;;
min nan 0.;;
max 0. nan;;
max nan 0.;;
min 0. nan;;
min nan 0.;;
--
Colas
The text was updated successfully, but these errors were encountered: