Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here I am trying to use 2 to the power 4 .For this i used 2^4 but this is not working
please help me regarding this.
Posted

Think youll have to write:
C#
Math.Pow(2,4)


Here is the documentation:
http://msdn.microsoft.com/en-us/library/system.math.pow.aspx[^]
 
Share this answer
 
Comments
ridoy 13-May-13 4:44am    
+5
Kenneth Haugland 13-May-13 4:57am    
Thank you :-)
Hi
You can use Pow method of Math.

For Example: Math.Pow(2, 4)
 
Share this answer
 
Use
Math.Pow(value, power)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900