The signed zero -0 deserves being documented
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
Here are some results that could be described in a dedicated page in the Floating point section of the help:
--> zm = -0
zm =
0.
--> 1/zm
ans =
-Inf
--> zm==0
ans =
T
--> zm<0
ans =
F
--> sign(zm)
ans =
0.
-->atan(0,0)
ans =
0.
-->atan(0,-0)
ans =
3.1415927
Cross-references: zeros(), number_properties, %inf, ieee(), https://en.wikipedia.org/wiki/Signed_zero, ..
OTHER INFORMATION:
------------------
From https://www.mail-archive.com/users@lists.scilab.org/msg07641.html
Edited by Vincent COUVERT