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

x/ddc_vim/deps.ts>fn.asin

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.asin
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { asin } = fn;

Return the arc sine of {expr} measured in radians, as a Float in the range of [-pi/2, pi/2]. {expr} must evaluate to a Float or a Number in the range [-1, 1]. Returns "nan" if {expr} is outside the range [-1, 1]. Returns 0.0 if {expr} is not a Float or a Number. Examples:

:echo asin(0.8)

    0.927295

:echo asin(-0.5)

    -0.523599

Can also be used as a method:

Compute()->asin()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>