Is there a Math API for Pow(decimal, decimal)

后端 未结 6 1789
醉梦人生
醉梦人生 2020-12-13 17:18

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

6条回答
  •  无人及你
    2020-12-13 18:21

    I know this is an old thread but I'm putting this here in case someone finds it when searching for a solution. If you don't want to mess around with casting and doing you own custom implementation you can install the NuGet DecimalMath.DecimalEx and use it like DecimalEx.Pow(number,power).

提交回复
热议问题