float number = 1.3333333f; int decimalPlaces = 2; float roundedNumber = (float) Math.Round(number, decimalPlaces); //output 1.33