dec2base
Convert decimal number to another base.
📝 Syntax
R = dec2base(D, B)
R = dec2base(D, B, N)
📥 Input argument
D - a nonnegative integer smaller than the value returned by flintmax.
B - an integer value [2, 36].
N - an integer value. number of digits.
📤 Output argument
R - result of dec2base: char array.
📄 Description
dec2base converts decimal number to another base.
values are cached to speed up next computationdec2base([], 2) to clear cache.
💡 Example
🔗 See also
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?