Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.acos

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.acos
import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/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>