Vector Floor (FLOOR)
Summary
Vector floor: rounds each input value down to the nearest integer. Element-wise math transform.
Formula
outReal[i] = floor(inReal[i])
Inputs
inReal— Input values
Outputs
outReal— Each input rounded down to nearest integer
Properties
Numerical Stability: Start-Independent
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
| ☐ Can Output NaN or ±Inf |
| ☐ Identity at Period 1 |
Implementation
TA-Lib Definition: floor.c · floor.yaml
| Native | File |
|---|---|
| C | ta_FLOOR.c |
| Rust | floor.rs |
| Java | Core_FLOOR.java |
TA-Lib is also available for Python, R and more using a wrapper.