Math / Reference
alerta.math.floor
TradingView-compatible spelling: math.floor, runs without warnings
Rounds x downward to nearest integer.
alerta.math.floor(x) → series floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x | series float | Yes | — | Input value. |
Returns
series floatExample
alerta.math.floor
v = floor(1.8)plot(v, { pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.