An open API service indexing awesome lists of open source software.

https://github.com/cromega08/bin_to_dec

A conversor of binary numbers into decimal.
https://github.com/cromega08/bin_to_dec

bin-to-dec binary binary-to-decimal binarytodecimal cli cli-app decimal elixir elixir-lang elixir-language elixir-programming-language

Last synced: 3 months ago
JSON representation

A conversor of binary numbers into decimal.

Awesome Lists containing this project

README

        

# 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:

```bash
elixir "/path/to/elixir/script/bin_to_dec.exs"
```

```bash
To exit, enter without input

Binary:
```

Then enter the binary value:

```bash
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

* [@Cromega08](https://www.github.com/cromega08)

## License

* [GNU AGPL v3.0](https://choosealicense.com/licenses/agpl-3.0/)