float myFloat = 3.14F;
float radius = 5.0F; float area = (float)(Math.PI * Math.Pow(radius, 2)); Console.WriteLine("The area of the circle is {0}", area);In this example, we calculate the area of a circle with a radius of 5.0. We use the Math.Pow method to square the radius and then multiply by pi. The resulting value is a Single which is then printed to the console. Package library: System.Runtime.dll, System.Math.dll