1 samarudge 16 7 Years Ago Hi, What is the function/opperator to calculate a power with C# I tryed powerof = anumber ^ anothernumber; and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under Math. functions and there was nothing and I spent ages Googleing Thanx, Sam c# math operator

1 Featured Reply Geekitygeek 480 7 Years Ago check out Math.Pow() http://msdn.microsoft.com/en-us/library/system.math.pow.aspx Votes + Comments samarudge: Good link, prompt response