Ceil

From VLECK
Jump to: navigation, search

Rounds real values to the next higher integers, and rounds complex values to the next higher integer for both real and imaginary part

Syntax

Result = Ceil( Values);

Return Value

Ceil rounds all elements of the matrix or structure Values to the next higher integers. If Values contains complex values, Ceil rounds both the real and the coefficient of the imaginary part to the next higher integer. The return value is a matrix or structure of the same shape as the argument Values . The return value contains either integers or complex values.

Parameters

Values Matrix or structure with numerical values


Example


A=0.11,2.25,5.30, 2.95;

0.110000 2.250000 5.300000 2.950000

R=Ceil(A);

1 3 6 3



A=Sqrt(1, -2, -5, 6) + 2.5

3.500000 2.500000+1.414214i 2.500000+2.236068i 4.949490

R=Ceil(A);

4.000000 3.000000+2.000000i 3.000000+3.000000i 5.000000