title: Reduce decimal places and add commas using vue js
body: <p>I have a vue js Data value that i get from a json. I use the json in a v-for prop to make Li for a side nav. One of the objects in the json it a long number. What would be the best way to parse it using vuejs within a for loop.</p>
  
  <p>I have tried vue-numeric but could not get that to work properly because i am not using ecmascript 6 in this project and i just want to add it to the main vue script.</p>
  
  <pre><code> data: {
              poolAPIData: {},
  
  
          },
  
  &lt;li v-for="(poolList, poolType) in poolConfig"&gt;
                          &lt;a href="#"&gt;&lt;i class="fa fa-linux fa-fw"&gt;&lt;/i&gt; {{poolType}}&lt;span class="fa arrow"&gt;&lt;/span&gt;&lt;/a&gt;
                          &lt;ul class="nav nav-third-level" v-for="pool in poolList"&gt;
                              &lt;li style="font-size:90%;"&gt;
                                  &lt;a v-if="poolAPIData[pool.tag]" v-bind:href="pool.url"&gt;&lt;i class="fa fa-book fa-fw"&gt;&lt;/i&gt;{{pool.tag}} &lt;br&gt;HR|
                                      {{poolAPIData[pool.tag].hashrate}} &lt;br&gt;NHR|
                                      {{poolAPIData[pool.tag].network_hashrate}}&lt;br&gt;NWD|
                                      {{poolAPIData[pool.tag].difficulty}}
  
  
  
                                  &lt;/a&gt;
  
  
                              &lt;/li&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
  
  
   this.poolAPIData = $.ajax({
                      dataType: "json",
                      url: 'https://coinstop.me/api/',
                      success: (data =&gt; this.poolAPIData = data)
              })
                  ;
  </code></pre>
  
  <p>i need to parse the Difficulty argument to have 2 decimal places and commas every 3 digits.</p>