change base
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
change-base
Change number base (radix) - Feb 1994
B = chb(A,a,b) change numerical base: a,b scalars from 2 to 64 , A,B strings. Number A in base a , expressed in base b by B. Symbols are 0 .. 9 A .. Z a .. z @ &.
Example: '-54.13'-chb(chb('-54.13',6,27),27,6)
Note: since it operates by converting to and from doubles, it is not perfectly reliable for very long numbers in high bases.
Giampiero Campa 21-2-94
Cite As
Giampiero Campa (2026). chb (https://github.com/giampy1969/change-base/releases/tag/v1.1), GitHub. Retrieved .
Acknowledgements
Inspired: Numeral Systems Toolbox 1.1
General Information
- Version 1.1 (2.5 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.1 | See release notes for this release on GitHub: https://github.com/giampy1969/change-base/releases/tag/v1.1 |
||
| 1.0.0.0 | Renamed lowercase |
