title: How can I display dynamic table values as integers in Pinescript?
body: <p>How can I display dynamic table values as integers in Pinescript?</p>
  <p>I have created a simple table in PineScript, using the table.new function, which gives me an overview of different assets. It shows me the percentage change compared to the previous day. However, it is a float with over 10 decimal places. How can I declare that it should be displayed as int with only 2-3 decimal places?</p>
  <p>I worked with the str.tostring function to show the percentage change.</p>
  <pre><code>table.cell(table_id = myTable, column = 1, row = 1, text = &quot;VIX&quot;, text_color =#8C983D) 
  table.cell(table_id = myTable, column = 2, row = 1, text = str.tostring(percentChange), text_color = color.white, text_size = size.normal)
  table.cell(table_id = myTable, column = 3, row = 1, text = str.tostring(close1), text_color = color.gray, text_size = size.normal)
  </code></pre>