Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 3
    refer for details regarding using number pipe
    – akhouri
    Commented Apr 11, 2017 at 0:39
  • 22
    This was helpful in understanding why 1.2-2 stackoverflow.com/questions/38477970/…
    – maudulus
    Commented May 23, 2017 at 2:16
  • 25
    For future readers, {{ x | number : '1.2'}} is also valid and means the same thing. Commented Jun 28, 2017 at 17:27
  • 14
    mehaase, is not the same. For example if you have 5.6 and 5.6789 the output will be 5.60 and 5.6789. So, the first parameter is the min and the second is the number of maximum digits. Commented Aug 11, 2017 at 11:15
  • 2
    How to use Pipe to transform a number to 1 decimal place and without roundup. Ex: 345.678 => 345.6
    – Brian
    Commented Dec 1, 2017 at 3:46