https://github.com/kayke-fujinaka/binary-to-decimal
💻 Binary to Decimal Converter
https://github.com/kayke-fujinaka/binary-to-decimal
binary binary-to-decimal conversion
Last synced: 23 days ago
JSON representation
💻 Binary to Decimal Converter
- Host: GitHub
- URL: https://github.com/kayke-fujinaka/binary-to-decimal
- Owner: Kayke-Fujinaka
- Created: 2022-06-10T16:47:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T17:45:54.000Z (over 3 years ago)
- Last Synced: 2025-01-07T05:46:22.666Z (over 1 year ago)
- Topics: binary, binary-to-decimal, conversion
- Language: TypeScript
- Homepage:
- Size: 668 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
💻 BINARY TO DECIMAL
> 🔎 Binary to Decimal Converter
## ⚔️ Challenge
In this challenge, you must build an algorithm that must be able to receive a number in binary and convert it to base 10 (decimal number system). Use the Javascript programming language.
- It must be possible to receive a number in binary;
- You must notify if you have an input that is not binary;
- Must return the converted number.
```javascript
const input = '0110';
const result = run(input);
// output
// 6
console.log(result);
```
## 🚀 Technologies ##
- [TypeScript](https://www.typescriptlang.org/docs/)
- [Jest](https://jestjs.io/pt-BR/docs/getting-started)
## :closed_book: How to use it? ##
Before starting, you need to have [Git](https://git-scm.com) and [Node](https://nodejs.org/en/) installed.
```bash
# Clone this project
$ git clone https://github.com/Kayke-Fujinaka/Binary2Decimal
# access
$ cd binary2decimal
# install dependencies
$ yarn or npm
# Run the project
$ yarn start or npm start
# The server will initialize in the
```
## 🤝 Collaborators
Thanks to the following people who contributed to this project: