Mercurial > octave
comparison scripts/strings/dec2hex.m @ 29197:1a3cb2e1644a
dec2bin.m: Add docstring note about fractional input incompatibility (bug #59719).
* dec2bin.m: Add Known Matlab Incompatibility note about fractional input
handling.
* dec2hex.m: Use "into" instead of "in to" in docstring.
author | Nicholas R. Jankowski <jankowskin@asme.org> |
---|---|
date | Fri, 18 Dec 2020 15:23:00 -0500 |
parents | d8318c12d903 |
children | 7854d5752dd2 |
comparison
equal
deleted
inserted
replaced
29196:3332f1964e59 | 29197:1a3cb2e1644a |
---|---|
27 ## @deftypefn {} {} dec2hex (@var{d}) | 27 ## @deftypefn {} {} dec2hex (@var{d}) |
28 ## @deftypefnx {} {} dec2hex (@var{d}, @var{len}) | 28 ## @deftypefnx {} {} dec2hex (@var{d}, @var{len}) |
29 ## Return a string representing the conversion of the integer @var{d} to a | 29 ## Return a string representing the conversion of the integer @var{d} to a |
30 ## hexadecimal (base16) number. | 30 ## hexadecimal (base16) number. |
31 ## | 31 ## |
32 ## If @var{d} is negative, return the two's complement binary value of @var{d}. | 32 ## If @var{d} is negative, return the hexadecimal equivalent of the two's |
33 ## complement binary value of @var{d}. | |
33 ## If @var{d} is a matrix or cell array, return a string matrix with one row | 34 ## If @var{d} is a matrix or cell array, return a string matrix with one row |
34 ## for each element in @var{d}, padded with leading zeros to the width of the | 35 ## for each element in @var{d}, padded with leading zeros to the width of the |
35 ## largest value. | 36 ## largest value. |
36 ## | 37 ## |
37 ## The optional second argument, @var{len}, specifies the minimum number of | 38 ## The optional second argument, @var{len}, specifies the minimum number of |