Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Mathematical Functions
Topic: Common Functions
See also: floor rint

Function: ceil
Description: Returns the smallest integer value greater or equal to each element of an array.

Usage: z = ceil (x)
Input:
x array
Output:
z array

Example:
x = #(0.79, 2.1) ~ #(-3.99, -6.01) ~ #(4,4.01)
ceil(x)

Result:
Content of ceil

[1,]  1      -3       4
[2,]  3      -6       5



(C) MD*TECH Method and Data Technologies, 05.02.2006