- Error handling
- Positive Overflow Error
- Negative Overflow Error
- Invalid Digit Error
- Fully commented for clarity
This section is for people who want to compile the project themselves
Requires Rust and Cargo to compile
git clone https://github.com/GiddyLinux/denary-to-binary-convertor.git
cd denary-to-binary-convertor
cargo build --release --target <platform of choice>
Below is an example demonstration of the program
$ ./binary-decimal-x86_64-unknown-linux-gnu
Enter your number: 15
That is 1111 in binary
Below is an example of an error possibly triggered by misusing the program
$ ./binary-decimal-x86_64-unknown-linux-gnu
Enter your number: not a number
Invalid Digit: Make sure you are entering only numbers