Nobody can lay a resistive film down to exactly 4.7 kΩ. A film resistor is made below its value and cut up to it. The film goes onto a ceramic rod all over, steel caps are pressed onto its ends, and a laser cuts a spiral groove through the film between them. The current now has to follow the strip that is left, round and round the rod: a longer, narrower path, so every turn of the cut adds resistance. A meter watches the value climb, and the laser stops when it reaches the target. Press Start the build and the stage does exactly that, while the chart under it draws the climb.
The model behind it treats the film as a uniform sheet unrolled flat. An uncut film of 100 ohms per square on this ¼ W rod measures 64.7 Ω; the spiral reaches 4.7 kΩ after about 3.2 turns, and a cut the whole length of the film would go as far as 12 kΩ. Each value gets its own film grade, in steps of ten ohms per square, so the cut always ends between about 5% and all of the film's length. Those numbers are modelled, not measured: a real line deposits its own grades and sets its own pitch.
Two things follow. A trim can only ever raise a value, which is why the film is laid down low. And how finely the laser can stop is what sets the tolerance: a carbon film trimmed in a few turns holds ±5% comfortably, while a ±1% part is a metal film trimmed more finely, which is why precision resistors are blue. Turn on the cutaway to see the spiral on the finished part, or take it apart.