Mercurial > hg > octave-nkf
diff scripts/strings/dec2hex.m @ 3426:f8dde1807dee
[project @ 2000-01-13 08:40:00 by jwe]
author | jwe |
---|---|
date | Thu, 13 Jan 2000 08:40:53 +0000 |
parents | 4f40efa995c1 |
children | 2a257be5e488 |
line wrap: on
line diff
--- a/scripts/strings/dec2hex.m +++ b/scripts/strings/dec2hex.m @@ -21,7 +21,7 @@ ## @deftypefn {Function File} {} dec2hex (@var{n}) ## Return the hexadecimal number corresponding to the nonnegative decimal ## number @var{n}, as a string. For example, -## +## ## @example ## dec2hex (2748) ## @result{} "abc" @@ -50,9 +50,9 @@ for i = 1:len tmp = d (i); if (tmp == round (tmp)) - h = sprintf ("%s%x", h, tmp); + h = sprintf ("%s%x", h, tmp); else - error ("dec2hex: invalid conversion"); + error ("dec2hex: invalid conversion"); endif endfor unwind_protect_cleanup