You could create a method for doing that, like in the next example:
public int RoundInt(int number, int digits)
{
int factor = (int)Math.Pow(10, digits);
if (number / factor > 0)
{
double temp = Math.Round((double)number/ factor, 0);
return (int)temp * factor;
}
else
{
return 0;
}
}
Then you could invoke it like in the next example:
int result = RoundInt(123,567 , 3);