diff options
Diffstat (limited to 'node_modules/locutus/ruby/Math/acos.js')
-rw-r--r-- | node_modules/locutus/ruby/Math/acos.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/locutus/ruby/Math/acos.js b/node_modules/locutus/ruby/Math/acos.js new file mode 100644 index 0000000..4073b01 --- /dev/null +++ b/node_modules/locutus/ruby/Math/acos.js @@ -0,0 +1,13 @@ +"use strict"; + +module.exports = function acos(arg) { + // discuss at: http://locutus.io/ruby/Math/acos/ + // original by: Onno Marsman (https://twitter.com/onnomarsman) + // note 1: Sorry about the crippled test. + // note 1: Needed because precision differs accross platforms. + // example 1: (acos(0.3) + '').substr(0, 17) + // returns 1: '1.266103672779499' + + return Math.acos(arg); +}; +//# sourceMappingURL=acos.js.map
\ No newline at end of file |