Mercurial > octave
diff scripts/strings/dec2bin.m @ 3361:4f40efa995c1
[project @ 1999-11-19 21:19:37 by jwe]
author | jwe |
---|---|
date | Fri, 19 Nov 1999 21:19:44 +0000 |
parents | c9f70d39255f |
children | f8dde1807dee |
line wrap: on
line diff
--- a/scripts/strings/dec2bin.m Fri Nov 19 05:15:27 1999 +0000 +++ b/scripts/strings/dec2bin.m Fri Nov 19 21:19:44 1999 +0000 @@ -17,10 +17,16 @@ ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -## usage: dec2bin (x) -## -## Returns the binary number corresponding to the nonnegative integer -## x. For example, dec2bin (14) returns "1110". +## -*- texinfo -*- +## @deftypefn {Function File} {} dec2bin (@var{n}) +## Return a binary number corresponding the nonnegative decimal number +## @var{n}, as a string of ones and zeros. For example, +## +## @example +## dec2bin (14) +## @result{} "1110" +## @end example +## @end deftypefn ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> ## Adapted-By: jwe