We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original bug ID: 6321 Reporter: jfc Status: closed (set by @xavierleroy on 2017-02-16T14:18:13Z) Resolution: fixed Priority: low Severity: minor Target version: 4.03.0+dev / +beta1 Fixed in version: 4.03.0+dev / +beta1 Category: standard library Monitored by: @dbuenzli
The ocaml runtime and Unix math runtime return different results for hypot(nan, infinity).
On Unix (Linux and OpenBSD), hypot(infinity, nan) returns infinity. The manual says this is as designed.
The ocaml runtime, when HAS_C99_FLOAT_OPS is not defined, returns nan.
I don't think this is important, but I thought I should point out the inconsistency.
The text was updated successfully, but these errors were encountered:
Comment author: @xavierleroy
Well spotted, thanks. Fixed in commit [trunk 86d4023], will be part of release 4.03.
Sorry, something went wrong.
No branches or pull requests
Original bug ID: 6321
Reporter: jfc
Status: closed (set by @xavierleroy on 2017-02-16T14:18:13Z)
Resolution: fixed
Priority: low
Severity: minor
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: standard library
Monitored by: @dbuenzli
Bug description
The ocaml runtime and Unix math runtime return different results for hypot(nan, infinity).
On Unix (Linux and OpenBSD), hypot(infinity, nan) returns infinity. The manual says this is as designed.
The ocaml runtime, when HAS_C99_FLOAT_OPS is not defined, returns nan.
I don't think this is important, but I thought I should point out the inconsistency.
File attachments
The text was updated successfully, but these errors were encountered: