str.tostring
Converts a value to a string. format: "#.##" style digits, or format.mintick (rounded to the tick size), format.price, format.percent or format.volume.
str.tostring(value: any, format: string = na) -> string
Parameters
valueany: The value to write; na gives "NaN".formatstring: How to write a number (default: as it is, at most 8 decimals). "#.##" keeps up to two decimals and drops trailing zeros, "0.00" always two; "mintick" (format.mintick) rounds to the tick size and shows its decimals.
Example
str.tostring(close, format.mintick)