math.round_to_mintick() - Pine Script Function
math.round_to_mintick()
Section titled “math.round_to_mintick()”Overview
Section titled “Overview”Returns the value rounded to the symbol’s mintick, i.e. the nearest value that can be divided by syminfo.mintick, without the remainder, with ties rounding up.
Syntax
Section titled “Syntax”math.round_to_mintick(number) → simple floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| number | simple int/float | The value to be rounded. |
Returns
Section titled “Returns”The number rounded to tick precision.
Remarks
Section titled “Remarks”- Note that for ‘na’ values function returns ‘na’.