title: Formatting Number in javascript using decimal
body: <p>I have following types of values in a, b,c,d.</p>
  
  <pre><code>a= 12345678
  b= 12345678.098
  c=12345678.1
  d=12345678.11
  </code></pre>
  
  <p>I need to format  like,</p>
  
  <pre><code>a = 12,345,678.000
  b=  12,345,678.098
  c=12,345,678.100
  d=12,345,678.110
  </code></pre>
  
  <p>I already tried tolocaleString() and toFixed(3) method. But I'm not able to works together of both method.</p>
  
  <p>need your suggestion on this.</p>