Round Toward -Infinity Function
- Updated2025-07-30
- 2 minute(s) read
Truncates the input to the next lowest integer.
For example, if the input is 3.8, the result is 3. If the input is –3.8, the result is –4. The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
x
—
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
floor(x): largest int <= x
—
floor(x): largest int ≤ x is the resulting lowest integer, closest to x. If the input is a time stamp value, the function rounds to the previous second. When x is of the form x = a + bi, that is, when x is complex, the function returns a complex number defined by the next lowest integers to the real and imaginary parts of x. The following equation defines floor(x): largest int ≤ x: floor(x) = floor(a) + i floor(b) |
FPGA Module Details
The following details apply when you use this object in an FPGA VI.
| Single-Cycle Timed Loop | Supported. |
| Usage | This function does not support the single-precision floating-point data type. |
| Timing | Inside single-cycle Timed Loop--When you use this function inside a single-cycle Timed Loop, the combinatorial logic delay is proportional to the number of bits in x. Outside single-cycle Timed Loop--When you use this function outside a single-cycle Timed Loop, it takes one clock cycle and uses one register. The overflow and rounding modes might impact timing. |
| Resources | This function requires FPGA resources proportional to the number of bits in x. The overflow and rounding modes might impact resources. |
x
—
floor(x): largest int <= x
—