Skip to content

Commit

Permalink
Document sign behavior for floating point negative zero
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Oct 15, 2024
1 parent 6f7937c commit f653660
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit f653660

Please sign in to comment.