Moving the band gap changes which photon rows are accepted. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Lower gap accepts and leaves excess
The photon stays at 6 joules. Moving the band gap to 4 joules gives accepted bit 1 and excess 2 joules.
E=hf=2⋅3=6J6J>Eg=4Jaccepted=1
Matching gap is the equality boundary
The photon stays at 6 joules. Moving the band gap to 6 joules gives accepted bit 1 and excess 0 joules.
E=hf=2⋅3=6J6J=Eg=6Jaccepted=1
Higher gap rejects the same photon
The photon stays at 6 joules. Moving the band gap to 8 joules gives accepted bit 0 and excess 0 joules.