How do I round labels to two decimal places?

Solution 1:

l1 = label.new(bar_index[1], patternLabelPosHigh, text=tostring(high[1], "#.##"), style=label.style_label_right, color = color.black, textcolor=color.white)
l2 = label.new(bar_index[1], patternLabelPosLow, text=tostring(low[1], "#.##"), style=label.style_label_right, color = color.black, textcolor=color.white)