Swift: fix rounding in computing shellColumns