A short decimal label can hide a longer stored value. This lab follows one addition or subtraction through input conversion and arithmetic, using exact fractions to keep the comparison visible.
Try a different case
JavaScript Number label
Follow the values
Account for the difference
Operand conversion + operation rounding = total discrepancy. This identity is checked with exact fractions.
Inspect each input and the stored bits
Exact fractions treat positive and negative zero as the same rational value. The Number label and bits retain the sign of negative zero separately.
Keep learning
Twelve questions, with worked explanations
Explore representations, conversion, arithmetic, comparisons and integer guarantees. The guide includes worked transfer answers. Download the lesson, then open RecallWeave’s learner page or local demo. Under “Bring your own lesson,” choose the JSON file, review the preview, and select “Start this deck” to begin a fresh lesson.