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.
- Host: GitHub
- URL: https://github.com/cromega08/bin_to_dec
- Owner: cromega08
- License: gpl-3.0
- Created: 2022-08-18T14:02:53.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-03T19:46:09.000Z (over 2 years ago)
- Last Synced: 2025-01-10T16:50:02.967Z (4 months ago)
- Topics: bin-to-dec, binary, binary-to-decimal, binarytodecimal, cli, cli-app, decimal, elixir, elixir-lang, elixir-language, elixir-programming-language
- Language: Elixir
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 inputBinary:
```Then enter the binary value:
```bash
To exit, enter without inputBinary: 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/)