https://github.com/email2vimalraj/bin2dec
Binary to Decimal converter using React
https://github.com/email2vimalraj/bin2dec
binary-decimal javascript react reactjs usestate
Last synced: 6 months ago
JSON representation
Binary to Decimal converter using React
- Host: GitHub
- URL: https://github.com/email2vimalraj/bin2dec
- Owner: email2vimalraj
- Created: 2019-04-19T15:09:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T15:34:43.000Z (over 3 years ago)
- Last Synced: 2025-03-28T00:06:40.812Z (7 months ago)
- Topics: binary-decimal, javascript, react, reactjs, usestate
- Language: JavaScript
- Homepage: https://lrkm139qwl.codesandbox.io/
- Size: 6.84 KB
- Stars: 15
- Watchers: 1
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Binary to Decimal Converter
Idea from [here](https://github.com/florinpop17/app-ideas)
**Demo**: [Codesandbox](https://lrkm139qwl.codesandbox.io/)
**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 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.## User Stories
- [x] ~User can enter up to 8 binary digits in one input field~
- [x] ~User must be notified if anything other than a 0 or 1 was entered~
- [x] ~User views the results in a single output field containing the decimal (base 10) equivalent of the the binary number that was entered~## Bonus features
- [x] ~User can enter a variable number of binary digits~