Is there a library for decimal calculation, especially the Pow(decimal, decimal)
method? I can\'t find any.
It can be free or commercial, either way, as
Not using decimal
. Use double
instead. According to this thread, the Math.Pow(double, double) is called directly from CLR.
How is Math.Pow() implemented in .NET Framework?
Here is what .NET Framework 4 has (2 lines only)
[SecuritySafeCritical]
public static extern double Pow(double x, double y);
64-bit decimal is not native in this 32-bit CLR yet. Maybe on 64-bit Framework in the future?