Skip to content

cromega08/bin_to_dec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Bin to Dec (Elixir)

A conversor of binary numbers into decimal.

Installation

Just clone the repo or copy the code inside the script.

Usage/Examples

Execute the script called "bin_to_dec.exs" using the elixir compiler:

elixir "/path/to/elixir/script/bin_to_dec.exs"
To exit, enter without input

Binary: 

Then enter the binary value:

To exit, enter without input

Binary: 1001010
Decimal: 74
  • NOTE: Maximum size to enter is 1byte (8 binary digits).

To exit, press "Enter" without any input in the terminal.

Authors

License