@abaplint/runtime
Version:
Transpiler - Runtime
21 lines • 580 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.tan = tan;
const types_1 = require("../types");
function tan(input) {
let num_in = undefined;
if (typeof input.val === "number") {
num_in = input.val;
}
else if (typeof input.val === "string") {
num_in = parseFloat(input.val);
}
else if (input.val instanceof types_1.Float) {
num_in = input.val.getRaw();
}
else {
num_in = parseFloat(input.val.get().toString());
}
return Math.tan(num_in);
}
//# sourceMappingURL=tan.js.map