Rakesh9100 / CalcDiverse

CalcDiverse is a customized collection of calculators for various aspects of mathematics. Individuals with basic web development knowledge can create distinctive calculators and submit pull requests.
https://calcdiverse.netlify.app
Apache License 2.0
149 stars 387 forks source link

[Feature] Add shift operations in Bitwise Calculator #648

Closed sanikaahadap closed 5 months ago

sanikaahadap commented 6 months ago

Description

Sir, I have relevant knowledge about bitwise operations and concerned programming capabilities. I request you to assign this task to me.

Screenshots

No response

Checklist

Code of Conduct

github-actions[bot] commented 6 months ago

Hey @sanikaahadap, Welcome to the project CalcDiverse! 🎊 Thanks for opening an issue! 🙌 Please wait for the issue to be assigned. Happy Coding!! ✨

Rakesh9100 commented 5 months ago

Bitwise Calculator is already present on the website, so for what bug you have opened this issue @sanikaahadap

sanikaahadap commented 5 months ago

The bitwise calculator has inconsistencies and some cases aren't being handled properly, which is leading to incorrect results, which is why I had opened the issue.

Uday2902 commented 5 months ago

Hi @Rakesh9100, i think there is an issue with bitwise NOT operation it is currently calculated using this formula : image

But "~" operator gives output in 2's complement so current output is : image

Output should be : "010010" instead of "-101110"

Correct formula to calculate NOT is : image

I would like to work on this issue and i would also like to add two more fundamental bitwise operations :

1) Bitwise Left-shift 2) Bitwise Right-shift

I request you to assign this issue to me.

Rakesh9100 commented 5 months ago

Provide the supporting screenshots of the issues @sanikaahadap

Rakesh9100 commented 5 months ago

You can go ahead @Uday2902