image thumbnail


version (2.02 KB) by Ahmed A. Selman
Decimal (base 10) number to senary (base 6) converion function.


Updated 18 Nov 2014

View License

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 (2022). dec2senary(num) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!