math.ceil
The smallest whole number that is not less than number.
The result is an int, not a float.
math.ceil(const float number) → const intmath.ceil(input float number) → input intmath.ceil(series float number) → series intmath.ceil(simple float number) → simple int| Parameter | Type | Required | Description |
|---|---|---|---|
number | const float | yes | The number to round upwards. |
Returns const int or input int or series int or simple int — An int in the argument’s form.
indicator("Close rounded up")
plot(math.ceil(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.