baseconv
is a command-line utility that converts numbers between different numerical bases, including binary, decimal, hexadecimal, and octal.
- Input can be in any base including iregular ones eg: base 3 up to base 32
- Output converstion can be to all regular bases
- Output can be customized
- Cross platform
- Quick and responsive
- Includes a man page as well as a --help flag to demonstrate how to build a command
- Includes an installation bash script to allow you to use the command anywhere on your computer
- Negative number support
- Floating point numbers support
Install baseconv auto installation script via
$ sudo ./install.sh
$ baseconv -bin 101011 --dho
dec= 43
hex= 2b
oct= 53
this command will interpret 1010111 in binary and output the result in decimal then hexadecimal then octal
$ baseconv -hex FE,CD --a
bin= 11111110.11001101
dec= 254.801
hex= FE.CD
oct= 376.632
this command will interpret FE,CD in hexadecimal and output the result in all common bases
for documentation use
$ baseconv --help
or alternatively
$ man baseconv
- Add colored output to distinguish number from sign
This project orginally created so I can cheat through the assignements so I guess I can quote my university lmafo:
Visit the project's GitHub page for contributions and bug reports: baseconv Contribute to development and help improve the utility..
written by @TensorPhobia
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.