title: How do you do *integer* exponentiation in C#?
body: <p>The built-in <code>Math.Pow()</code> function in .NET raises a <code>double</code> base to a <code>double</code> exponent and returns a <code>double</code> result.</p>
  
  <p>What's the best way to do the same with integers?</p>
  
  <p>Added: It seems that one can just cast <code>Math.Pow()</code> result to (int), but will this always produce the correct number and no rounding errors?</p>