Limit to 2 decimal places with a simple pipe

Discussão em 'Angular' iniciado por rushtoni88, Dezembro 23, 2024.

  1. rushtoni88

    rushtoni88 Guest

    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?

    Continue reading...

Compartilhe esta Página