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

后端 未结 6 1787
醉梦人生
醉梦人生 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条回答
  •  Happy的楠姐
    2020-12-13 18:00

    wait, huh? why can't you use doubles? you could always cast if you're using ints or something:

    int a = 1;
    int b = 2;
    int result = (int)Math.Pow(a,b);
    

提交回复
热议问题