MathF.Cbrt() Method in C# with Examples Last Updated : 28 Oct, 2019 Comments Improve Suggest changes Like Article Like Report MathF.Cbrt(Single) Method is used to return the cube root of a floating point value. Syntax: public static float Cbrt (float x); Here, it takes a standard floating point number. Return Value: This method returns the cube root of the given value. Example 1: csharp // C# program to demonstrate the // MathF.Cbrt(Single) Method using System; class GFG { // Main Method public static void Main() { // Declaring and initializing value float value = 27f; // getting cube root of value // using Cbrt() method float round = MathF.Cbrt(value); // Display the value Console.WriteLine("Cube root of {0} is {1}", value, round); } } Output: Cube root of 27 is 3 Example 2: csharp // C# program to demonstrate the // MathF.Cbrt(Single) Method using System; using System.Globalization; class GFG { // Main Method public static void Main() { // calling get() method Console.WriteLine("Cube root of given "+ "numbers are respectively"); get(8f); get(27.8967f); get(64f); get(125.2534f); } // defining get() method public static void get(float value) { // getting cube root of given value // using Cbrt() method float round = MathF.Cbrt(value); // Display the value Console.WriteLine("Cube root of {0} is {1}", value, round); } } Output: Cube root of given numbers are respectively Cube root of 8 is 2 Cube root of 27.8967 is 3.03285 Cube root of 64 is 4 Cube root of 125.2534 is 5.003376 Comment More infoAdvertise with us Next Article MathF.Acos() Method in C# with Examples R rohitprasad3 Follow Improve Article Tags : C# CSharp-method CSharp-MathF-Class Similar Reads MathF.Cos() Method in C# with Examples MathF.Cos(Single) is an inbuilt MathF class method which returns the cosine of a given float value argument(specified angle). Syntax: public static float Cos (float x); Here, x is the angle(measured in radian) whose cosine is to be returned and the type of this parameter is System.Single. Return Val 2 min read MathF.Acos() Method in C# with Examples MathF.Acos(Single) Method is used to return the angle whose cosine is given as a single or float value argument. If the argument is NaN, then the result will be NaN. Syntax: public static float Acos (float x); Here, it takes a standard floating point number. Return Value: This method returns an angl 2 min read MathF.Cosh() Method in C# with Examples Math.Cosh(Single) Method is the inbuilt MathF class method which returns the hyperbolic cosine of a given single value argument. Syntax: public static float Cosh (float x); Here, x is the number whose hyperbolic cosine is to be returned and type of this parameter is System.Single. Return Value: This 2 min read MathF.Abs() Method in C# with Examples MathF.Abs(Single) Method is used to return the absolute value of a specified float number. Syntax: public static float Abs (float x); Here, it takes a standard floating point number. Return Value: This method returns a floating point value less than Single.MaxValue. Example 1: csharp // C# program t 1 min read MathF.Atan() Method in C# with Examples MathF.Atan(Single) Method is used to return the angle whose tangent is given as a single value argument. If the argument is NaN, then the result will be NaN. Syntax: public static float Atan (float x); Here, it takes a standard floating point number. Return Value: This method returns an angle 2 min read MathF.Ceiling() Method in C# with Examples In C#, MathF.Ceiling(Single) is a MathF class method. This method is used to find the smallest integer , which is greater than or equal to the specified single or float value in the argument list. Syntax: public static float Ceiling (float x); Here, x is the float(Single) value whose ceiling value h 1 min read Like