Skip to content
New issue

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

Incorrect comments about NaNs #7891

vicuna opened this Issue Jan 2, 2019 · 0 comments


None yet
2 participants
Copy link

vicuna commented Jan 2, 2019

Original bug ID: 7891
Reporter: sfuric
Status: new
Resolution: open
Priority: normal
Severity: minor
Version: 4.07.0
Category: documentation
Monitored by: @nojb @shindere @yakobowski

Bug description

Documentation of module Float is wrong regarding IEEE 754 evaluation rules. It says any arithmetic operation with nan as argument returns nan as result'' and Any floating-point operation with nan as argument returns nan as result'' which is wrong, as demonstrated by OCaml itself:
OCaml version 4.07.0

1.0 ** nan;;

  • : float = 1.

nan ** 0.0;;

  • : float = 1.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.