To use pow function in C# , which namespace is to be added in the beginning?

 Dont Buy Textbooks. Rent 'EM Save 60-80%



You don't need to import anything, or adjust the namespace of your application. The pow function is a static method (as are most if not all methods in this class) of the Math class. Ex:

double result = Math.pow(5, 2);

result would equal 25. Note that the return is a double.



More Related Questions and Answers ...
  • What is the use of namespace in C#?
  • When do we use " using namespace std; in..
  • [C#] How do I get the name of the current pro..
  • [C#] How do I get the name of the current pro..
  • Why is "namespace" used for in C++ ..
  • How do you create a packet/namespace/class li..
  • In C#, how do I use a namespace of a cs file ..
  • Using namespace std; - this statement is givi..
  • What classes from the namespace System.Drawin..
  • In C++ programming, what is the purpose/use o..
  • Visual C++ - Using DLL Code?
  • Visual C++ - How do I utilize a previously cr..
  • Dev-C++ Execution Termination?
  • Dev-C++ problem or not sure!?
  • C++ Programmers, need help. would you?
  • I need help with my c++ compiler...?
  • I cant' figure whats wrong w/my C++ ..
  • Can not compile C++ programs using GCC under ..
  • C++ Build Solution problem?

  • The information post by website user , we not guarantee correctness.

    

    Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes