Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.FLOOR
Rounds each element down to an integer (Vector Floor).
talib.FLOOR(inReal)Examples
Round the close prices of the latest K-lines down.
javascript
function main() {
var records = exchange.GetRecords()
if (!records) return
var ret = talib.FLOOR(records)
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
if not records:
return
ret = talib.FLOOR(records.Close)
Log(ret)Returns
| Type | Description |
numeric array | Results, the same length as the input. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
See Also
Remarks
TA-Lib equivalent: FLOOR(Records[Close]) = Array(outReal).