Skip to main content
Removed tagging from question title, removed 'place' tag https://meta.stackoverflow.com/questions/363504/the-place-tag-is-in-the-process-of-being-burninated
Link
BSMP
  • 4.7k
  • 8
  • 34
  • 45

Angular 2 Pipe - limit Limit to 2 decimal places with a simple pipe

Source Link
rushtoni88
  • 4.6k
  • 7
  • 24
  • 32

Angular 2 Pipe - limit to 2 decimal places

I have found an example which limits a number to 2 decimal places AND turns the figure into a currency amount- eg £2.55.

{{ number | currency : 'GBP' : true : '1.2-2'}}

Is there a simple pipe which does the same without applying a currency?