| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt | [Back] [Original] |
Get to know MDN better
Math.cbrt()
console.log(Math.cbrt(-1));
// : -1
console.log(Math.cbrt(1));
// : 1
console.log(Math.cbrt(Infinity));
// : Infinity
console.log(Math.cbrt(64));
// : 4
Math.cbrt(x)
x
cbrt() Math Math Math.cbrt() (Math )
Math.cbrt(-Infinity); // -Infinity
Math.cbrt(-1); // -1
Math.cbrt(-0); // -0
Math.cbrt(0); // 0
Math.cbrt(1); // 1
Math.cbrt(2); // 1.2599210498948732
Math.cbrt(Infinity); // Infinity
| ECMAScript 2027 LanguageSpecification # sec-math.cbrt |
| Web Proxy Viewer | New URL | Original Page |