Skip to main content
Module

x/ddc_vim/deps.ts>fn.sqrt

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.sqrt
import { fn } from "https://deno.land/x/ddc_vim@v0.0.13/deps.ts";
const { sqrt } = fn;

Return the non-negative square root of Float {expr} as a |Float|. {expr} must evaluate to a |Float| or a |Number|. When {expr} is negative the result is NaN (Not a Number). Examples: :echo sqrt(100) 10.0 :echo sqrt(-4.01) nan "nan" may be different, it depends on system libraries. Can also be used as a |method|: Compute()->sqrt() {only available when compiled with the |+float| feature}

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>