Mercurial > hg > octave-nkf
comparison scripts/strings/hex2dec.m @ 2314:949ab8eba8bc
[project @ 1996-07-12 03:58:02 by jwe]
author | jwe |
---|---|
date | Fri, 12 Jul 1996 03:58:02 +0000 |
parents | 5ca126254d15 |
children | c9f70d39255f |
comparison
equal
deleted
inserted
replaced
2313:5ca126254d15 | 2314:949ab8eba8bc |
---|---|
20 ## usage: hex2dec (h) | 20 ## usage: hex2dec (h) |
21 ## | 21 ## |
22 ## Returns the decimal number corresponding to the hex number in | 22 ## Returns the decimal number corresponding to the hex number in |
23 ## quotes. For example, hex2dec ("12B") and hex2dec ("12b") both | 23 ## quotes. For example, hex2dec ("12B") and hex2dec ("12b") both |
24 ## return 299. | 24 ## return 299. |
25 | |
26 ## Author: jwe | |
25 | 27 |
26 function d = hex2dec (h) | 28 function d = hex2dec (h) |
27 | 29 |
28 ## Original version by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>. | 30 ## Original version by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>. |
29 | 31 |