A conversor of binary numbers into decimal.
Just clone the repo or copy the code inside the script.
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.