Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ceil

MATLAB ceil function


Description

Rounds to the nearest integer.

Usage

ceil(x)

Arguments

x

numeric to be rounded

Details

Simply invokes ceiling for those more used to C library API name.

Value

Returns numeric vector containing smallest integers not less than the corresponding elements of argument x.

Author(s)

See Also

Examples

ceil(c(0.9, 1.3, 2.4))

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.