Skip to content

ElijahBare/BinaryHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Helper

This crate serves 2 purposes:

1: converting a binary number to a base 10 number

2: converting a base 10 number to a binary number

Example

fn is_10_binary_check(x) -> String {
    let result = dec2binary(x);
    if result == "0001010"{
        "X is 10 (0001010 in binary)!".to_string()
    }
}

Releases

No releases published

Packages

No packages published

Languages