Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>ceil

๐Ÿ“š Standard module for denops.vim
Go to Latest
function ceil
import { ceil } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

Return the smallest integral value greater than or equal to {expr} as a Float (round up). {expr} must evaluate to a Float or a Number. Examples:

echo ceil(1.456)

    2.0

echo ceil(-5.456)

    -5.0

echo ceil(4.0)

    4.0

Returns 0.0 if {expr} is not a Float or a Number.

Can also be used as a method:

Compute()->ceil()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>