इस टूल में कोई समस्या है?
«बिटवाइज़ कैलकुलेटर ऑनलाइन» के बारे में
यह टूल दो पूर्णांकों पर बिट-स्तरीय ऑपरेशन करता है: AND, OR, XOR, NOT, बायाँ शिफ्ट, दायाँ शिफ्ट, और अंकगणितीय शिफ्ट। दशमलव, हेक्साडेसिमल, ऑक्टल या बाइनरी में संख्याएँ दर्ज करें, और कैलकुलेटर सभी चार आधारों में परिणाम और बिट पैटर्न लौटाता है।
बिटवाइज़ ऑपरेशन प्रोग्रामिंग में मौलिक हैं, विशेष रूप से निम्न-स्तरीय सिस्टम, एम्बेडेड कोड, ग्राफिक्स, नेटवर्किंग और क्रिप्टोग्राफी में।
यह टूल बिट हेरफेर सीखने वाले छात्रों, मास्क और अनुमतियों को डिबग करने वाले डेवलपर्स, और हार्डवेयर रजिस्टर सेटिंग्स सत्यापित करने वाले इंजीनियरों के लिए आदर्श है।
इस टूल का उपयोग कैसे करें
How to evaluate a bitwise operation on two integers
Enter A and B
"Integer A" and "Integer B" are the two operands. The tool truncates each to an integer with `Math.trunc` before operating — fractional inputs lose their decimals.
Pick the operation
"Operation" selects from `and` (`A & B`), `or` (`A | B`), `xor` (`A ^ B`), `shl` (`A << B`, left shift), `shr` (`A >> B`, right shift).
Press Run
Result returns a single `result` field — a signed 32-bit integer. JavaScript bitwise ops coerce both sides to 32-bit twos-complement, so anything outside [-2^31, 2^31 − 1] wraps around.
Shifts on B as a count
For `shl`/`shr`, only the low 5 bits of B are used as the shift count — so a shift of 32 is the same as a shift of 0. This is JavaScript's behavior, not a bug.