Methodology
Equal-spacing formula & layout assumptions
Both-edge clear gap
(wall width − batten count × batten width) ÷ (batten count − 1)
Use only when the first and last battens sit flush with the two layout boundaries.
Equal-end clear gap
(wall width − batten count × batten width) ÷ (batten count + 1)
The two end spaces and every interior clear gap are equal.
On-center spacing
exact clear gap + actual batten width
Adjacent battens share the same center-to-center increment once the exact gap is solved.
Mark position
first batten start + index × on-center spacing
Calculate each mark from one reference edge using full precision; do not walk a rounded gap across the wall.