Skip to main content
Module

x/dpp_vim/deps.ts>fn.log

Dark powered plugin manager for Vim/neovim
Latest
function fn.log
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { log } = fn;

Return the natural logarithm (base e) of {expr} as a Float. {expr} must evaluate to a Float or a Number in the range (0, inf]. Returns 0.0 if {expr} is not a Float or a Number. Examples:

:echo log(10)

    2.302585

:echo log(exp(5))

    5.0

Can also be used as a method:

Compute()->log()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>