Which of the following measurements is the length of the piece of yarn measured to the nearest half inch?

A ruler measuring 3 inches is placed horizontally to measure the length of the yarn. The ruler is marked with dashed lines every half inch. The left end of the yarn is lined up with 0 and the right end is lined up closest to the half inch mark after the 2.

A.
2
inches

B.
2
1
2
inches

C.
2
3
4
inches

D.
3
inches

B. 2 1/2 inches