diff scripts/strings/hex2dec.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/hex2dec.m	Fri Nov 19 05:15:27 1999 +0000
+++ b/scripts/strings/hex2dec.m	Fri Nov 19 21:19:44 1999 +0000
@@ -17,11 +17,18 @@
 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
-## usage:  hex2dec (h)
-##
-## Returns the decimal number corresponding to the hex number in
-## quotes.  For example, hex2dec ("12B") and hex2dec ("12b") both
-## return 299.
+## -*- texinfo -*-
+## @deftypefn {Function File} {} hex2dec (@var{s})
+## Return the decimal number corresponding to the hexadecimal number stored
+## in the string @var{s}.  For example,
+## 
+## @example
+## hex2dec ("12B")
+##      @result{} 299
+## hex2dec ("12b")
+##      @result{} 299
+## @end example
+## @end deftypefn
 
 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
 ## Adapted-By: jwe