Half-open bins make the edge case visible instead of text-only. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

The left edge belongs to code four

Input 4 V maps to code 4 with bin [4, 5) V.

4 V[4,5) V,c=44\ \text{V}\in [4,5)\ \text{V},\quad c=4
Half-open ADC edge scanThe right edge moves to the next code.input=4 V[4, 5) Vcode=4

The middle of the bin keeps code four

Input 9/2 V maps to code 4 with bin [4, 5) V.

92 V[4,5) V,c=4{9\over 2}\ \text{V}\in [4,5)\ \text{V},\quad c=4
Half-open ADC edge scanThe right edge moves to the next code.input=9/2 V[4, 5) Vcode=4

The old right edge starts the next code

Input 5 V maps to code 5 with bin [5, 6) V.

5 V[5,6) V,c=55\ \text{V}\in [5,6)\ \text{V},\quad c=5
Half-open ADC edge scanThe right edge moves to the next code.input=5 V[5, 6) Vcode=5