Mercurial > hg > octave-nkf
diff scripts/strings/bin2dec.m @ 3446:5ee5afb3981a
[project @ 2000-01-17 09:42:43 by jwe]
author | jwe |
---|---|
date | Mon, 17 Jan 2000 09:42:48 +0000 |
parents | c9f70d39255f |
children | 2a257be5e488 |
line wrap: on
line diff
--- a/scripts/strings/bin2dec.m +++ b/scripts/strings/bin2dec.m @@ -17,10 +17,16 @@ ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -## usage: bin2dec (x) +## -*- texinfo -*- +## @deftypefn {Function File} {} bin2dec (@var{s}) +## Return the decimal number corresponding to the binary number +## represented by the string @var{s}. For example, ## -## Returns the decimal number corresponding to the binary number in -## quotes. For example, bin2dec ("1110") returns 14. +## @example +## bin2dec ("1110") +## @result{} 14 +## @end example +## @end deftypefn ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> ## Adapted-By: jwe