math.ceil() - Pine Script Function
math.ceil()
Section titled “math.ceil()”Overview
Section titled “Overview”Rounds the specified number up to the smallest whole number (“int” value) that is greater than or equal to it.
Syntax
Section titled “Syntax”math.ceil(number) → const intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| number | const int/float | The number to round. |
Returns
Section titled “Returns”The smallest “int” value that is greater than or equal to the number.