math.floor
The largest whole number that is not greater than number.
The result is an int, not a float.
math.floor(const float number) → const intmath.floor(input float number) → input intmath.floor(series float number) → series intmath.floor(simple float number) → simple int| Parameter | Type | Required | Description |
|---|---|---|---|
number | const float | yes | The number to round downwards. |
Returns const int or input int or series int or simple int — An int in the argument’s form.
indicator("Close rounded down")
plot(math.floor(close))See also math.abs · math.acos · math.asin
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.