ceil

Purpose

Round towards infinity.

Synopsis

Y = ceil(X)

Description

Y = ceil(X) rounds the elements of X to the nearest integers >= X.

Examples

X = [-1.9  -0.2  3.4  5.6  7.0]
ceil(X) = [-1  0  4  6  7]

See Also

fix, floor, round

(c) Copyright 1994 by The MathWorks, Inc.