Built for my personal use to help quickly convert between numbers with different bases. Has some limitations since it's not really meant for widespread use :D
Technically, yes, you can use bc to do this too — but this tool also walks you through how to get the solution with detailed steps... and it was kinda fun to make.
-
convert help-> Opens help menu -
convert version-> Lists the application version -
convert table-> Displays the table used for converting between bases -
convert A B C-> Converts string A of base B to a new string of base C -
convert A B C --explain-> Does the same as above, with the addition of an in-depth explanation
Again, the tool was designed for personal use so it's not perfect, but alas, it may be helpful for others.
- Make sure you have Rust installed on your system (not technically needed, but makes the tool easier to distribute). If you don't, use this link.
- Clone the repo:
git clone https://github.com/mattrltrent/base_converter. - In the project directory, run
cargo build --release. - In the project directory, run
cargo install --path .(don't miss the ending.). - You should now be able to run the tool globally. To be sure, check if you can run
convert version.