Returns the floor function of x. If x is a complex value the function returns a complex number with the floor value of the real part of x as the real part of the result and the floor value of the imaginary part of x as the imaginary part of the result. It is performed element-wise if x is a vector, matrix or signal.
Syntax
floor(x)
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Argument: | x | real, complex | scalar, vector, matrix, signal, xy-data | |
Result: | v | real, complex | scalar, vector, matrix, signal, xy-data |
Calculator Input
Use the
button to complete the operation.Example
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL VECTOR |
| [2.6,30.99]] | |
v | Result | REAL VECTOR |
| floor(x) |