Power() public method

public Power ( int exp ) : BigInteger
exp int
return BigInteger
コード例 #1
0
ファイル: BigNumOps.cs プロジェクト: joshholmes/ironruby
 public static object Power(BigInteger/*!*/ self, int exponent) {
     // BigInteger doesn't handle negative exponents.
     if (exponent < 0) {
         return Power(self, (double)exponent);
     }
     return Protocols.Normalize(self.Power(exponent));
 }