WLJS LogoWLJS Notebook

Ceiling

Ceiling[x] gives the smallest integer greater than or equal to x.

Ceiling[x, a] gives the smallest multiple of a greater than or equal to x.

Examples

Ceiling of a number:

Ceiling[3.2]
(* 4 *)

Ceiling[-2.7]
(* -2 *)

Ceiling to a multiple:

Ceiling[17, 5]
(* 20 *)

Please visit the official Wolfram Language Reference for more details.

On this page