Calculator: Unsigned 32-bit logic
Enter the labelled inputs to calculate: Value AND; Value OR; Value XOR; Value NOT A.
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
A AND B; A OR B; A XOR B; NOT A; 0≤A,B<2³²
Use the displayed units and finite inputs. Results follow the stated mathematical model; zero denominators and undefined cases are rejected. Up to ten significant digits are displayed.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
A AND B; A OR B; A XOR B; NOT A; 0≤A,B<2³²
What assumptions apply?
Use the displayed units and finite inputs. Results follow the stated mathematical model; zero denominators and undefined cases are rejected. Up to ten significant digits are displayed.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Value A = 12
Value B = 10
|
Value AND: 8
Value OR: 14
Value XOR: 6
Value NOT A: 4294967283
|
| 2 |
Value A = 255
Value B = 4080
|
Value AND: 240
Value OR: 4095
Value XOR: 3855
Value NOT A: 4294967040
|
| 3 |
Value A = 4294967295
Value B = 123456789
|
Value AND: 123456789
Value OR: 4294967295
Value XOR: 4171510506
Value NOT A: 0
|