floor#

Purpose#

Round down toward \(-∞\).

Format#

x_floor = floor(x)#
Parameters:

x (NxK matrix or N-dimensional array) – The values to be rounded down.

Returns:

x_floor (NxK matrix or N-dimensional array) – Contains the elements of x rounded down to the nearest integer.

Examples#

x = { -2.6  3.75,
      2.79 -0.27 };

print floor(x);

will return:

-3  3
 2 -1

See also

Functions ceil(), round(), trunc()