title: How to round up or down a number using DecimalPipe in Angular
body: <p>How to round up or down a number using <code>DecimalPipe</code> in Angular<br />
  I think, <code>DecimalPipe</code> will round a number by default, like:</p>
  <pre><code> Rounding({{value | number:'1.0-2'}})
   1.234 =&gt; 1.23
   1.235 =&gt; 1.24
  </code></pre>
  <p>In my case, I'd like to round up/down a number, like:</p>
  <pre><code> Rounding up({{value | number:'1.0-2'}})
   1.234 =&gt; 1.24
   1.235 =&gt; 1.24
  
   Rounding down({{value | number:'1.0-2'}})
   1.234 =&gt; 1.23
   1.235 =&gt; 1.23
  </code></pre>
  <p>How can I achieve this directly using <code>DecimalPipe</code>?</p>