Skip to content

pwn4d/denary-to-binary-convertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Denary to Binary Convertor

Features

- Error handling 
    - Positive Overflow Error
    - Negative Overflow Error
    - Invalid Digit Error
- Fully commented for clarity

Installation

Use the binary provided in releases

Self Compilation

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>

Usage

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

About

A small denary to binary convertor written in rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages