❮ Math Methods
Example
System.out.println(Math.cbrt(0));
System.out.println(Math.cbrt(1));
System.out.println(Math.cbrt(27));
System.out.println(Math.cbrt(0.64));
System.out.println(Math.cbrt(-27));Definition and Usage
The cbrt() method returns the cube root of a number.
Syntax
public static double cbrt(double
number )Parameter Values
| Parameter | Description |
|---|---|
| number | Required. A number to find the cube root of. |
Technical Details
| Returns: | A double value representing the cube root of a number. |
|---|---|
| Java version: | 1.5+ |