Display whole number with 3 decimal places in Angular

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

  1. Kirti Jha

    Kirti Jha Guest

    I have an Angular application which has an input field to enter number. I want to display the number with 3 decimal places if user enters any whole number. For example, if user enters 6, it should display as 6.000 as soon as user clicks outside the input field. Is there any angular way to do it?

    Thanks

    Continue reading...

Compartilhe esta Página