title: How to format numbers into indian currency (in datatable) using javascript/jquery
body: <p>i have a data table  which is rendring on the basis of json data i am secussfully rendring the datatable but the problem is i have to format amount into indian currency like for 27227004 i want it to be 2,72,22,004</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function (){
   
      var table_data = 
       [
         [
           "CHEF BAKERS BROOKFIELD",
           "0",
           "2967629",
           "0"
         ],
         [
           "CHEF BAKERS ARAKERE",
           "0",
           "302542",
           "0"
         ],
         [
           "CHEF BAKERS AYYAPPA NGR",
           "0",
           "425433",
           "0"
         ],
         [
           "Chef Bakers Bellandur",
           "0",
           "1278244",
           "0"
         ],
         [
           "CHEF BAKERS BAGMANE CBP",
           "0",
           "546345",
           "0"
         ],
         [
           "CHEF BAKERS CHANDAPURA",
           "0",
           "167527",
           "0"
         ],
         [
           "Chef Bakers Doddanekkundi",
           "0",
           "490462",
           "0"
         ],
         [
           "CHEF BAKERS SIDDAPURA",
           "0",
           "461639",
           "0"
         ],
         [
           "CHEF BAKERS ECITY",
           "0",
           "699634",
           "0"
         ],
         [
           "CHEF BAKERS VYDEHI",
           "0",
           "459675",
           "0"
         ],
         [
           "CHEF BAKERS HARLUR ROAD",
           "0",
           "229458",
           "0"
         ],
         [
           "Chef Bakers Hennur Main Road",
           "0",
           "211808",
           "0"
         ],
         [
           "CHEF BAKERS HSR LAYOUT",
           "0",
           "806820",
           "0"
         ],
         [
           "CHEF BAKERS KADUBEESANAHALLI",
           "0",
           "1108619",
           "0"
         ],
         [
           "CHEF BAKERS COFFEE BOARD",
           "0",
           "774311",
           "0"
         ],
         [
           "Chef Bakers Kaggadasapura",
           "0",
           "280712",
           "0"
         ],
         [
           "Chef Bakers Koramangala",
           "0",
           "345426",
           "0"
         ],
         [
           "CHEF BAKERS KASAVANAHALLI",
           "0",
           "415546",
           "0"
         ],
         [
           "Chef Bakers Marathahalli 1",
           "0",
           "525344",
           "0"
         ],
         [
           "Chef bakers Marathahalli 2",
           "0",
           "507047",
           "0"
         ],
         [
           "Chef Bakers Mahadevapura",
           "0",
           "2518170",
           "0"
         ],
         [
           "CHEF BAKERS BEL LAYOUT",
           "0",
           "404171",
           "0"
         ],
         [
           "CHEF BAKERS MG ROAD",
           "0",
           "450749",
           "0"
         ],
         [
           "CHEF BAKERS MANYATA TECH PARK",
           "0",
           "428558",
           "0"
         ],
         [
           "CHEF BAKERS NAGAWARA",
           "0",
           "444891",
           "0"
         ],
         [
           "CHEF BAKERS PRESTIGE SHANTHINIKETAN",
           "0",
           "576911",
           "0"
         ],
         [
           "CHEF BAKERS PRITECH",
           "0",
           "1269371",
           "0"
         ],
         [
           "CHEF BAKERS RR NAGAR",
           "0",
           "566927",
           "0"
         ],
         [
           "Chef Bakers Kadugodi",
           "0",
           "1199501",
           "0"
         ],
         [
           "CHEF BAKERS SARJAPURA ROAD",
           "0",
           "457940",
           "0"
         ],
         [
           "CHEF BAKERS SINGASANDRA",
           "0",
           "245249",
           "0"
         ],
         [
           "CHEF BAKERS SPICE GARDEN",
           "0",
           "434369",
           "0"
         ],
         [
           "Chef Bakers Whitefield",
           "0",
           "1360325",
           "0"
         ],
         [
           "CHEF BAKERS YELAHANKA",
           "0",
           "1213855",
           "0"
         ]
       ]
              
  
      var table = $('#example').DataTable( {
          data: table_data,
          "scrollY": "200px",
       "scrollCollapse": true,
      } );    
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" rel="stylesheet"/&gt;
  &lt;script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
  &lt;table id="example" class="table table-striped "&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Outlet&lt;/th&gt;
              &lt;th&gt;MTD&lt;/th&gt;
              &lt;th&gt;YTD&lt;/th&gt;
              &lt;th&gt;Todays's Transaction&lt;/th&gt;
              
          &lt;/tr&gt;
      &lt;/thead&gt;
     
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>what i want to do is to format the numbers into indian currency</p>
  
  <p>please any one have any idea guide me please</p>