Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.pow

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

Return the power of {x} to the exponent {y} as a Float. {x} and {y} must evaluate to a Float or a Number. Returns 0.0 if {x} or {y} is not a Float or a Number. Examples:

:echo pow(3, 3)

    27.0

:echo pow(2, 16)

    65536.0

:echo pow(32, 0.20)

    2.0

Can also be used as a method:

Compute()->pow(3)

Parameters

denops: Denops
x: unknown
y: unknown

Returns

Promise<number>