How many rows do I knit to reach this length?
The count is the length in centimetres, divided by 10, times the rows in 10 cm, then rounded to a whole row. Inches become centimetres at 2.54 cm per inch. A gauge printed per 4 inches is divided by 4 * 2.54 / 10 before that step, because 4 inches is 10.16 cm, not 10 cm.
The worked example is 58 cm at 26 rows per 10 cm: 150.8 rows exactly, rounded to 151. Those 151 rows measure 58.0769 cm.
Rows and the length they measure
150.8 rows exactly, rounded to 151. 151 rows measure 58.0769 cm (22.8649 in). The target length is 58 cm.
- Exact rows
- 150.8
- Rounded rows
- 151
- Length of those rows
- 58.0769 cm
- That length in inches
- 22.8649 in
- Rows per 10 cm
- 26
- Rows per 4 inches
- 26.416
What the rounding does
round follows Math.round. When the fractional part is exactly 0.5, the result moves toward positive infinity. A positive count on that tie rounds up.
28 rows exactly, rounded to 28. 28 rows measure 10.16 cm (4 in). The target length is 10.16 cm.
27.5591 rows exactly, rounded to 28. 28 rows measure 10.16 cm (4 in). The target length is 10 cm.
Length from a row count
The reverse does not round. It is the length those rows actually measure at the same gauge. 151 rows at this gauge measure 58.0769 cm (22.8649 in).
Sources
The inch in this formula is the international inch. NIST: the international inch is exactly 25.4 mm records the 1959 definition: the inch is exactly 25.4 mm, which is 2.54 cm.
The row count is arithmetic. It does not choose a needle or a yarn class. Classify the yarn from the stitch gauge or convert stitches per inch to 10 cm before you cast on. The forward formula, with one worked row, is also on the reference page.