Matrix rounding and approximation