summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/pow.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/math/pow.js')
-rw-r--r--node_modules/locutus/php/math/pow.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/pow.js b/node_modules/locutus/php/math/pow.js
new file mode 100644
index 0000000..c9ef62d
--- /dev/null
+++ b/node_modules/locutus/php/math/pow.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function pow(base, exp) {
+ // discuss at: http://locutus.io/php/pow/
+ // original by: Onno Marsman (https://twitter.com/onnomarsman)
+ // example 1: pow(8723321.4, 7)
+ // returns 1: 3.8439091680778995e+48
+
+ return Math.pow(base, exp);
+};
+//# sourceMappingURL=pow.js.map \ No newline at end of file