Mercurial > hg > octave-lyh
changeset 15500:96b7343b8a41
Fix typo in docstring for 'sign'.
* mappers.cc(Fsign): correct bad escape sequence in the docstring.
author | Carlo de Falco <cdf@users.sourceforge.net> |
---|---|
date | Thu, 11 Oct 2012 08:54:08 +0200 |
parents | 6e834a113760 |
children | 814c4b0d5c49 1353ca03266f |
files | libinterp/corefcn/mappers.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/mappers.cc +++ b/libinterp/corefcn/mappers.cc @@ -1755,7 +1755,8 @@ \n\ For complex arguments, @code{sign} returns @code{x ./ abs (@var{x})}.\n\ \n\ -Note that @code{sign (-0.0)} is 0.\n\ Although IEEE 754 floating point\n\ +Note that @code{sign (-0.0)} is 0.\n\ +Although IEEE 754 floating point\n\ allows zero to be signed, 0.0 and -0.0 compare equal. If you must test\n\ whether zero is signed, use the @code{signbit} function.\n\ @seealso{signbit}\n\