Giter VIP home page Giter VIP logo

binary-calculator's Introduction

๐Ÿ‘‹ Hi, Iโ€™m @Alitindrawan24

  • ๐Ÿ‘€ Iโ€™m interested in Web Developing and learn about new technology
  • ๐Ÿ“ซ How to reach me : PM to [email protected]

๐ŸŒ Socials:

LinkedIn Medium Docker HackerRank FreeCodeCamp Website

๐Ÿ’ป Tech Stack:

Go TypeScript Vultr JavaScript PHP Vue.js Laravel Express.js MySQL Redis Postgres MongoDB GRAFANA PROMETHEUS NodeJS jQuery Bootstrap

๐Ÿ“Š GitHub Stats:


๐Ÿ† GitHub Trophies

โœ๏ธ Random Dev Quote

๐Ÿ… Holopin Badge

An image of @alt24's Holopin badges, which is a link to view their full Holopin profile

๐Ÿชช DevCard

Alit Indrawan's Dev Card


binary-calculator's People

Contributors

adityakumar2408 avatar alitindrawan24 avatar ayushichoudhary-19 avatar balayokesh avatar barunipriyats avatar bharath-kumarreddy avatar clou-d-walker avatar ctln23 avatar dannylarge144 avatar debghs avatar dheekshagopika avatar heetboda10 avatar kondapalli19 avatar pranav-jadhav avatar rikisptraaa avatar shivamsinghcse avatar sp9324 avatar tushar1323 avatar utsxvrai avatar v3ntus avatar vaibhava17 avatar vaishnavibn14 avatar villain45 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

binary-calculator's Issues

feature : add a '.'(decimal) button

The calculator currently has support for fractional output, but has no '.'(decimal) button for fractional input.
I want to add the '.' (decimal) button.

May I work on this??

need a set of test cases.

I have noticed that with some of the PRs merged, the logic of the calculator is getting broken.
Even though I have fixed all the bugs in my last commit (PR #53), this might happen again later on.

I suggest that @Alitindrawan24, please implement a process such that, before merging any new PR, the commit passes through a set of test cases that contain all the different types of cases where the logic might get broken, i.e. edge cases.

I may work on this if you wish, but I think you(@Alitindrawan24 ) should implement this asap(before any further PRs are merged).

Displaying Correct Binary to Decimal Conversion

Currently, there is an no functionality to display the binary to decimal conversion functionality in the application. When users input a binary number, the application does not display the decimal equivalent. This can be resolved to ensure accurate conversions and provide users with the correct results.

Binary to Octal Conversion

Currently, there is an no functionality to display the binary to octal conversion in the application.

I would like to add a button that converts the binary number to octal number and displays it.

feature : Add a backspace button

The calculator currently has a 'C' button that clears the whole input, if clicked.
I want to add a backspace button that would omit the last character of the input stream.

Also, I would like to rearrange the existing buttons for aesthetic purposes.
If you wish I may work on that too.

I have added the necessary code and now the project looks like this,

image

Do you wish me to create a PR for you to merge this ??

Add a cursor

I would like to add a cursor in the display area so that user can use the calculator more easily.
Kindly assign this issue to me @Alitindrawan24

Displaying Correct Binary to Hexadecimal Conversion

Currently, there is an no functionality to display the binary to hexadecimal conversion functionality in the application. When users input a binary number, the application cannot display the hexadecimal equivalent.

I would like to add a hexadecimal button.

bug : non-binary fraction output

The calculator outputs decimal numbers in fractions instead of only binary numbers when attempting to divide a number by a larger number.

Example:

Input: 11 / 101
Current: 0.33333333...
Expected: 0.10011001100....

The calculator should output only binary digits in case of a binary fraction.

May I work on this issue ??

UI Fix

It look like the calculator needs some UI fix so that it looks a little better for the user. Please assign this to me.

Complement Button

I want to add buttons like 1's complement and 2's complement in this.

Lack of error messages/Input Validation

Lack of Error Messages

The binary calculator currently lacks error messages when incorrect input is provided, resulting in the input field being cleared without any explanation. This can be confusing for users, as it doesn't provide guidance on what went wrong.

Example:

Input: ++-
Expected: Display an error message explaining the incorrect input.
Current: Input field is cleared without any error message.

Additional
I would like to work on this issue, kindly assign.

entering input directly

now, the user has to click on button numerous times to give the operands. I would like to make that happen through keyboard.

Handling Division by Zero

The calculator crashes when attempting to divide by zero, causing the website to hang on reload. This behavior is inconsistent with other aspects of the application, where it should ideally display an appropriate message and gracefully handle divide by zero cases without impacting user experience.

Example:

  1. Input: 1101 / 0
    • Expected: The calculator should handle division by zero gracefully.
    • Current: The website crashes and becomes unresponsive upon reloading.

Steps to Recreate:

  1. Open the binary calculator on the website.
  2. Enter a binary expression that involves dividing by zero, such as 1101 / 0.
  3. Press the "=" button to perform the division.
  4. Observe that the website crashes and becomes unresponsive upon reloading.

Expected Behavior:

The calculator should detect the divide by zero condition, handle it gracefully, and provide appropriate feedback to the user without crashing the website.

This issue impacts user experience and should be addressed to ensure the calculator functions smoothly.


Note: I would like to work on this issue. Please assign it to me.

Fix the javascript function of calculator .

i think the js Function have Bug or something is wrong with it , it show 1+1 =10 and 1/0 broke the application, fix this answer Zero is not showing , like = 1*0 = empty .

please don't change the whole, function try to solve with minor changes .

Reorganize Button Layout

image

The current Button Layout is very jumbled and non-intuitive. I would like to rearrange the button layout and make it more friendly.

Proposed Solution:

Arrange the buttons in a way that is similar to most of the calculator layouts.

Please assign me this issue under the HacktoberFest tag.

Clearing the input on entering new input after invalid input message

image

Whats happing is when user is entering an invalid input the calculator show the invalid input result on the screen but it is not clearing when entering new input number. Need to clear before enter manually.

What i will do is that when this message is showing i will allow input field to get clear automatically when a new digit is entered from the keyboard without manually clearing the field for next solution.

Dark mode button

Changing dark theme button into some another modern button and arranging the buttons into more efficient way .

Improve README file

I thought of adding below changes to the readme file:

  1. Adding website screenshot
  2. Centering heading (Bnary-Calculator)
  3. Add contributor image like the image below:

If you wish to add these changes please assign this issue to me @Alitindrawan24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.