guilhermebolfe11 / bin2dec

The purpose of bin2dec is to provide practice and understanding of how binary calculations

Home Page:https://bin2dec.guilhermebolfe.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bin2dec

Tier: 1-Beginner

Binary is the number system all digital computers are based on. Therefore it's important for developers to understand binary, or base 2, mathematics. The purpose of bin2dec is to provide practice and understanding of how binary calculations.

bin2dec allows the user to enter strings of up to 8 binary digits, 0's and 1's, in any sequence and then displays its decimal equivalent.

This challenge requires that the developer implementing it follow these constraints:

  • Arrays may not be used to contain the binary digits entered by the user
  • Determining the decimal equivalent of a particular binary digit in the sequence must be calculated using a single mathematical function, for example the natural logarithm. It's up to you to figure out which function to use.

Badges

MIT License Netlify Status Release

User Stories

  • User can enter up to 8 binary digits in one input field
  • User must be notified if anything other than a 0 or 1 was entered
  • User views the results in a single output field containing the decimal (base 10) equivalent of the binary number that was entered

Bonus features

  • User can enter a variable number of binary digits

Useful links and resources

Binary number system

Run Locally

What you need to install to use the software locally

  • NodeJs
  • Npm or Yarn
  • React

Start

npm run start
or
yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Build

npm run build
or
yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

License

MIT License

About

The purpose of bin2dec is to provide practice and understanding of how binary calculations

https://bin2dec.guilhermebolfe.com

License:MIT License


Languages

Language:TypeScript 86.1%Language:HTML 10.4%Language:JavaScript 1.8%Language:Shell 1.7%