weight variable rounding