dec2senary(num)
Version 1.0.0.0 (2.02 KB) by
Ahmed A. Selman
Decimal (base 10) number to senary (base 6) converion function.
dec2senary converts any given number from decimal (base 10) system into senary (or sexenary, that is base 6) system. This is NOT the hexadicimal numeral system which is base 16. In the senary system the maximum number is 5, and 6 is converted as 10. There are no numbers as (6 to 9) in the senary system; but the only symbols are 0-5. Negative input should be recognized by the function, but input should always be an integer. The output is always returned as a string.
Cite As
Ahmed A. Selman (2026). dec2senary(num) (https://www.mathworks.com/matlabcentral/fileexchange/48501-dec2senary-num), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Symbolic Math Toolbox > Symbolic Computations in MATLAB > Units of Measurement >
Find more on Units of Measurement in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
