Vector Floor (FLOOR)
Summary
Element-wise floor (round down to the nearest integer) of the input series.
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.
See Also
References
- Wikipedia, Floor and ceiling functions: en.wikipedia.org/wiki/Floor_and_ceiling_functions