title: How to add commas without rounding off the decimal points in angular 4 pipe?
body: <p>Hi how to add commas without rounding off the decimal points?</p>
  
  <p>example:</p>
  
  <pre><code>const data = 1000.789343;
  const data = 1000.786;
  </code></pre>
  
  <p>output should be</p>
  
  <pre><code>1,000.789343
  1,000.786
  </code></pre>
  
  <p>I tried some solutions:</p>
  
  <pre><code>new DecimalPipe(data, '2.')
  </code></pre>
  
  <p>But none of it worked. It will keep rounding off the decimal points. Help is much appreciated.</p>