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