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

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

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:




Photo by Kayke Fujinaka on GitHub


Kayke Fujinaka



Go back to top