comparison scripts/strings/dec2hex.m @ 3361:4f40efa995c1

[project @ 1999-11-19 21:19:37 by jwe]
author jwe
date Fri, 19 Nov 1999 21:19:44 +0000
parents 9e0c8e289555
children f8dde1807dee
comparison
equal deleted inserted replaced
3360:48bd8127e19b 3361:4f40efa995c1
15 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, write to the Free 16 ## along with Octave; see the file COPYING. If not, write to the Free
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA. 18 ## 02111-1307, USA.
19 19
20 ## usage: dec2hex (d) 20 ## -*- texinfo -*-
21 ## 21 ## @deftypefn {Function File} {} dec2hex (@var{n})
22 ## Returns the hex number corresponding to the decimal number d. For 22 ## Return the hexadecimal number corresponding to the nonnegative decimal
23 ## example, dec2hex (2748) returns "abc". 23 ## number @var{n}, as a string. For example,
24 ##
25 ## @example
26 ## dec2hex (2748)
27 ## @result{} "abc"
28 ## @end example
29 ## @end deftypefn
24 30
25 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> 31 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
26 ## Adapted-By: jwe 32 ## Adapted-By: jwe
27 33
28 function h = dec2hex (d) 34 function h = dec2hex (d)