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

Document sign behavior for floating point negative zero #23782

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/src/main/sphinx/functions/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ Returns the signum function of `x`, that is:
- 1 if the argument is greater than 0,
- -1 if the argument is less than 0.

For double arguments, the function additionally returns:
For floating point arguments, the function additionally returns:

- -0 if the argument is -0,
- NaN if the argument is NaN,
- 1 if the argument is +Infinity,
- -1 if the argument is -Infinity.
Expand Down