Skip to content
Algo Trade Analytics Docs

math.ceil() - Pine Script Function

Rounds the specified number up to the smallest whole number (“int” value) that is greater than or equal to it.

math.ceil(number) → const int
NameTypeDescription
numberconst int/floatThe number to round.

The smallest “int” value that is greater than or equal to the number.