title: Bootstrap table - numbers in accounting format
body: <p>How can I write numbers in a cell inside Bootstrap table in accounting format?</p>
  
  <p>For example: one million should be shown as 1,000,000 and not 1000000 (notice commas ',' between digits).</p>
  
  <p>Please note that data data is getting filled by Django app. </p>
  
  <p>Example:</p>
  
  <pre><code>&lt;tbody&gt;
     {% for row in tbl_list %}
         &lt;tr id="port_row_{{row.stock}}_{{index}}"&gt;
             {% if row.stock == 'TOTAL'%}
             &lt;td&gt; {{row.stock}}&lt;/td&gt;
             {% else %}
             &lt;td&gt; &lt;a target="_blank" style="color:blue;" href="https://www.google.com/finance?q=NSE:{{ row.stock }}"&gt;{{row.stock}}&lt;/a&gt;&lt;/td&gt;
             {% endif %}
             &lt;td&gt;{{row.name}}&lt;/td&gt;
             &lt;td&gt;{{row.investment_amount}}&lt;/td&gt;
             &lt;td&gt;
             {% if row.weekly_gain &gt;= 0 %}
             &lt;div style="color:green"&gt;
                  +{{row.weekly_gain}}
                  &lt;i class="fa fa-arrow-up"&gt;&lt;/i&gt;
             &lt;/div&gt;
             {% else %}
             &lt;div style="color:tomato"&gt;
             {{row.weekly_gain}}
             &lt;i class="fa fa-arrow-down"&gt;&lt;/i&gt;
             &lt;/div&gt;
             {% endif %}
             &lt;/td&gt;
             &lt;td&gt;{{row.percentage}}&lt;/td&gt;
             &lt;td&gt;{{row.percentage_of_portfolio}}&lt;/td&gt;
          &lt;/tr&gt;
          {% endfor %}
  &lt;/tbody&gt;
  </code></pre>