Previously, subtracting zero (x - 0) would throw an error due to mismatched binary string lengths after two's complement negation, while other operations involving zero worked correctly. This change ensures that: - Zero is properly handled during two's complement negation - Binary strings are consistently padded to full width - Subtraction by zero (x - 0) now correctly returns x Adjust tests to accommodate two's complement of zero. The calculator now behaves consistently for all basic arithmetic identities involving zero. Signed-off-by: Macweese <50101641+macweese@users.noreply.github.com>
https://bitwisecmd.com is a web-based bitwise calculation tool. Its main goal is to help people understand how bitwise operaiton works by presenting numbers and operation results in binary format.
I initially created a tool in 2012 to help me better understand how Flags enums work in C#. I've decided to share it with everyone by converting it into the web application in 2015. And of course I couldn't resist the temptation to write my own JavaScript framework similar to Angular JS. I released the first version after 4 days of working from home while being on a sick live and having a mild feaver. It had templating engine and DI container. Since then I rewrote it in React because suprise-suprise supporting framework that you wrote yourself is not as easy as one might think. Espcially if you return to it after long pause. Still, I regret nothig. You can see here and here how application looked like back then (spoiler: very similar to AngularJS).
After some time I got into learning about networking in AWS. I needed to understand how IP subnet masks and CIDR notations work. Again, it was about bitwise operations. So I've extended BitwiseCmd with additional commands such as subnet, vpc, and support of IP address inputs.