Mercurial > octave
comparison scripts/strings/dec2bin.m @ 9051:1bf0ce0930be
Grammar check TexInfo in all .m files
Cleanup documentation sources to follow a few consistent rules.
Spellcheck was NOT done. (but will be in another changeset)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Fri, 27 Mar 2009 22:31:03 -0700 |
parents | eb63fbe60fab |
children | 923c7cb7f13f |
comparison
equal
deleted
inserted
replaced
9044:656ad518f385 | 9051:1bf0ce0930be |
---|---|
21 ## @deftypefn {Function File} {} dec2bin (@var{n}, @var{len}) | 21 ## @deftypefn {Function File} {} dec2bin (@var{n}, @var{len}) |
22 ## Return a binary number corresponding to the nonnegative decimal number | 22 ## Return a binary number corresponding to the nonnegative decimal number |
23 ## @var{n}, as a string of ones and zeros. For example, | 23 ## @var{n}, as a string of ones and zeros. For example, |
24 ## | 24 ## |
25 ## @example | 25 ## @example |
26 ## @group | |
26 ## dec2bin (14) | 27 ## dec2bin (14) |
27 ## @result{} "1110" | 28 ## @result{} "1110" |
29 ## @end group | |
28 ## @end example | 30 ## @end example |
29 ## | 31 ## |
30 ## If @var{n} is a vector, returns a string matrix, one row per value, | 32 ## If @var{n} is a vector, returns a string matrix, one row per value, |
31 ## padded with leading zeros to the width of the largest value. | 33 ## padded with leading zeros to the width of the largest value. |
32 ## | 34 ## |