Look down at both ends of the ruler. A ruler lying diagonally across a strip measures a longer path than one crossing straight between the edges.
Illustration: the ruler’s diagonal path is longer than a straight cross-strip measurement.
Place one side of a square against the strip and measure along the other side. Check at the near end, middle and far end.
If those readings still differ, the strip itself may taper. Write down all three widths before selecting the part that must fit.