Number Base Conversion CONVTO

版本 1.1.0.0 (221 字节) 作者: Daniel
Converts numbers to different bases. Only works for bases 2 through 10 using recursion.
169.0 次下载
更新时间 2014/3/6

查看许可证

This code is a simple recursion formula used to convert a number in base 10 to a number in base b.
Because it's a recursive method (mathematical), it's use is limited to base 10.
usage : convto(number in base 10, base b to convert to)

ex:

convto(100,6) = 244
because 2*36 + 4*6 + 4*1 = 72 + 24 + 4= 100

Steal my code... knowledge should be shared. Just don't try and sell it... unless you need lunch money and you've exhausted all your options, then I understand.

引用格式

Daniel (2024). Number Base Conversion CONVTO (https://www.mathworks.com/matlabcentral/fileexchange/45769-number-base-conversion-convto), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Just changed the description a bit

1.0.0.0