Skip to main content
Module

x/denops_std/function/mod.ts>pow

📚 Standard module for denops.vim
Go to Latest
function pow
import { pow } from "https://deno.land/x/denops_std@v4.3.1/function/mod.ts";

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)

only available when compiled with the +float feature

Parameters

denops: Denops
x: unknown
y: unknown

Returns

Promise<number>