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# にはべき乗演算子がないため (^は排他的 or であり、べき乗ではありません)、Math.Pow関数を使用する必要があります。
^