diff options
Diffstat (limited to 'node_modules/locutus/php/math/sqrt.js')
-rw-r--r-- | node_modules/locutus/php/math/sqrt.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/sqrt.js b/node_modules/locutus/php/math/sqrt.js new file mode 100644 index 0000000..06cb9d4 --- /dev/null +++ b/node_modules/locutus/php/math/sqrt.js @@ -0,0 +1,11 @@ +"use strict"; + +module.exports = function sqrt(arg) { + // discuss at: http://locutus.io/php/sqrt/ + // original by: Onno Marsman (https://twitter.com/onnomarsman) + // example 1: sqrt(8723321.4) + // returns 1: 2953.5269424875746 + + return Math.sqrt(arg); +}; +//# sourceMappingURL=sqrt.js.map
\ No newline at end of file |