Table Of Contents

floor

Version:
    Last Modified: January 9, 2017

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

    Syntax

    c = floor(a)

    Inputs

    a

    Numeric scalar or numeric array of any dimension.

    Outputs

    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


    Recently Viewed Topics