Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我试图在 C#中计算 9704 -36 。我该怎么做呢?我正在使用 Visual C# 2010 Express
使用Math.Pow(9704, -36). C# 没有专门的求幂运算符并Math.Pow填补了空白。
Math.Pow(9704, -36)
Math.Pow
与正指数完全相同的方法:
Math.Pow(9704,-36)
C# 中没有幂运算符(^是异或,不是幂),所以需要使用Math.Pow函数。
^