Length measurement and rounding