@MrToph/

ExponentiationBugs

Nodejs

No description

fork
loading
Files
  • index.js

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5889463471405716","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"Y29uc3QgZXhwb25lbnQgPSA5MjsKY29uc29sZS5sb2coYDEuMzUgKiogZXhwb25lbnRgLCAxLjM1ICoqIGV4cG9uZW50KSAgICAgICAgICAgICAgICAgICAvLyA5Nzg4Mjg3MTUzOTQuNzY3CmNvbnNvbGUubG9nKCcxLjM1ICoqIDkyJywgMS4zNSAqKiA5MikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gOTc4ODI4NzE1Mzk0Ljc2NzIKY29uc29sZS5sb2coYE1hdGgucG93KDEuMzUsIGV4cG9uZW50KWAsIE1hdGgucG93KDEuMzUsIGV4cG9uZW50KSkgICAvLyA5Nzg4Mjg3MTUzOTQuNzY3CmNvbnNvbGUubG9nKCdNYXRoLnBvdygxLjM1LCA5MiknLCBNYXRoLnBvdygxLjM1LCA5MikpICAgICAgICAgICAgICAgLy8gOTc4ODI4NzE1Mzk0Ljc2Nw=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
const exponent = 92;
console.log(`1.35 ** exponent`, 1.35 ** exponent)                   // 978828715394.767
console.log('1.35 ** 92', 1.35 ** 92)                               // 978828715394.7672
console.log(`Math.pow(1.35, exponent)`, Math.pow(1.35, exponent))   // 978828715394.767
console.log('Math.pow(1.35, 92)', Math.pow(1.35, 92))               // 978828715394.767
node v10.16.0