Skip to main content
Latest
function fn.acos
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { acos } = fn;

Return the arc cosine of {expr} measured in radians, as a Float in the range of [0, pi]. {expr} must evaluate to a Float or a Number in the range [-1, 1]. Otherwise acos() returns "nan". Examples:

:echo acos(0)

    1.570796

:echo acos(-0.5)

    2.094395

Can also be used as a method:

Compute()->acos()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>