C# で非常に大きな BigInteger の対数を見つけようとしています。対数の底が何であるかは気にしません。これを試すと:
BigInteger b = 1000; // the base
// myBigInt is a huge BigInt i want to find the Log of.
exponent = BigInteger.Log(myBigInt, 1000); //Find the Log
// Re-create the orignal BigInt now that I know base and exponent
BigInteger.Pow(b, Convert.ToInt32(exponent));
Int32 はログの結果を保持できないため、オーバーフロー例外が発生します。base の値を増やしても機能しません。