Serum magnesium is an independent predictor of macrovascular and microvascular complications in type 2 diabetes