locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
12 lines (11 loc) • 458 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.asin = asin;
function asin(arg) {
// discuss at: https://locutus.io/php/asin/
// original by: Onno Marsman (https://twitter.com/onnomarsman)
// note 1: Sorry about the crippled test. Needed because precision differs accross platforms.
// example 1: (asin(0.3) + '').substr(0, 17)
// returns 1: "0.304692654015397"
return Math.asin(arg);
}