Skip to content

Binary Calculator #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

pragna7
Copy link
Contributor

@pragna7 pragna7 commented Feb 26, 2025

Related Issue

-Binary Calculator

  • IWOC2025 Participant
  • Contributor

Closes: #171

Describe the changes you've made

This web application allows you to perform various binary operations on given binary numbers. With this calculator, you can easily perform binary addition, binary subtraction, binary multiplication, left shift, right shift, and more.

Type of change

Added Binary Calculator

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Features Added :-
Binary Addition: Add two binary numbers together to get the sum.
Binary Subtraction: Subtract one binary number from another to get the difference.
Binary Multiplication: Multiply two binary numbers to get the product.
Left Shift: Shift the bits of a binary number to the left, filling with zeroes.
Right Shift: Shift the bits of a binary number to the right, filling with zeroes or the sign bit.
Addition: Add two numbers together.
Subtraction: Subtract one number from another.
Multiplication: Multiply two numbers together.
Division: Divide one number by another to get the quotient.
Left Shift: Shift the bits of a number to the left, discarding bits.
Right Shift: Shift the bits of a number to the right, discarding bits.
AND Operator: Perform a bitwise AND operation between two binary numbers.
OR Operator: Perform a bitwise OR operation between two binary numbers.
XOR Operator: Perform a bitwise XOR operation between two binary numbers.
XNOR Operator: Perform a bitwise XNOR operation between two binary numbers.
NAND Operator: Perform a bitwise NAND operation between two binary numbers.
NOT Operator: Perform a bitwise NOT operation to invert the bits of a binary number.
Binary To Gray Operator: Convert a binary number to its corresponding Gray code.

Checklist:

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

Screenshots

image1

image2

Copy link
Owner

@prathimacode-hub prathimacode-hub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your PR is approved. @pragna7

@prathimacode-hub prathimacode-hub added Approved This PR is successfully approved Easy This label is assigned for submitting the easy peasy PR labels Feb 26, 2025
@prathimacode-hub prathimacode-hub merged commit f62fe96 into prathimacode-hub:main Feb 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved This PR is successfully approved Easy This label is assigned for submitting the easy peasy PR IWOC2025
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Binary Calculator
2 participants