Description As a first-year student currently using the Interactive Book to study for my End Semester exams, I noticed a critical contradiction in the Binary Addition chapter. The explanatory text correctly states that "when you do 1+1 it gives 0 with carry 1 i.e., 10". However, the code block immediately below it contradicts this by explicitly stating 1 + 1 = 1.
This error confuses the distinction between Boolean Logic (OR) and Binary Arithmetic, which is very misleading for students trying to understand the Carry concept.
To Reproduce
Steps to reproduce the behavior:
Go to the Interactive Book - Binary Addition Page (or navigate to _docs/binary-arithmetic/binary-addition.md).
Scroll down to the header "Addition".
Look at the code block under "Examples".
See the error on line 4: 1 + 1 = 1.
Expected behavior
The example should explicitly show the carry-over to match the text description. It should read: 1 + 1 = 10 (0 with a carry of 1).
Screenshots
Desktop:
OS: Windows 10
Browser: Brave
Version: 1.84.141
Additional context
I plan to submit a Pull Request to fix this. My proposed changes are:
Fix the Error: Change the code block to 1 + 1 = 10.
Add Clarification: Add a small truth table distinguishing Sum vs Carry.
Add Better Example: Include a 3-digit addition example (e.g., 110 + 101 = 1011) to demonstrate how a carry bit expands the result from 3 bits to 4 bits, which helps clarify the concept for beginners.
Description As a first-year student currently using the Interactive Book to study for my End Semester exams, I noticed a critical contradiction in the Binary Addition chapter. The explanatory text correctly states that "when you do 1+1 it gives 0 with carry 1 i.e., 10". However, the code block immediately below it contradicts this by explicitly stating 1 + 1 = 1.
This error confuses the distinction between Boolean Logic (OR) and Binary Arithmetic, which is very misleading for students trying to understand the Carry concept.
To Reproduce
Steps to reproduce the behavior:
Go to the Interactive Book - Binary Addition Page (or navigate to _docs/binary-arithmetic/binary-addition.md).
Scroll down to the header "Addition".
Look at the code block under "Examples".
See the error on line 4: 1 + 1 = 1.
Expected behavior
The example should explicitly show the carry-over to match the text description. It should read: 1 + 1 = 10 (0 with a carry of 1).
Screenshots
Desktop:
OS: Windows 10
Browser: Brave
Version: 1.84.141
Additional context
I plan to submit a Pull Request to fix this. My proposed changes are:
Fix the Error: Change the code block to 1 + 1 = 10.
Add Clarification: Add a small truth table distinguishing Sum vs Carry.
Add Better Example: Include a 3-digit addition example (e.g., 110 + 101 = 1011) to demonstrate how a carry bit expands the result from 3 bits to 4 bits, which helps clarify the concept for beginners.