floor

Version:

Rounds the input elements to the nearest integer towards -inf.

Syntax

c = floor(a)

a

Numeric scalar or numeric array of any dimension.

c

Rounded elements of a. c is an array of the same size as a.

Complex Input

If a is complex, MathScript rounds c with the following equation: c = floor(real(a))+floor(imag(a))*i.

A = [-3.7, -2.5, -1.3, 0, 1.3, 2.5, 3.7]
C = floor(A)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported