Floor

From VLECK
Jump to: navigation, search


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

Syntax

Result = Floor( Values);

Return Value

Floor rounds all elements of the matrix or structure Values to the next lower integers. If Values contains complex values, Floor rounds both the real and the coefficient of the imaginary part to the next lower 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;

A=0.11,2.25,5.30, 2.95;

0.110000 2.250000 5.300000 2.950000

R=Floor(A);

R=Floor(A);

0 2 5 2

Example


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

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

3.500000 2.500000+1.414214i 2.500000+2.236068i 4.949490

R=Floor(A);

R=Floor(A);

3.000000 2.000000+1.000000i 2.000000+2.000000i 4.000000