<< deal | Elementary functions | dec2bin >> |
R = dec2base(D, B) |
R = dec2base(D, B, N) |
a nonnegative integer smaller than the value returned by flintmax.
an integer value [2, 36].
an integer value. number of digits.
result of dec2base: char array.
dec2base converts decimal number to another base.
values are cached to speed up next computation dec2base([], 2) to clear cache.
X = [65535 128; 1 0]
Y = dec2base(X, 2)
Y = dec2base(X, 2, 26)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET