Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
Limit to 2 decimal places for a number like (25) with angular percentage pipe

I want to convert number to percentage format like 25 to 25.00% with angular percentage pipe.I have used this one.

{{ number | percent : '0.2-2'}}

I am getting like this 2,500.00%.any one can help me with this?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Probably you're using it with a big number, check this example on stackblitz. Remember that 1 equals 100%, so to show 25%, you need to put 0.25

Also, check the docs and their examples, should be doubtless

https://stackblitz.com/edit/angular-ivy-iszurj?file=src%2Fapp%2Fapp.component.html

https://angular.io/api/common/PercentPipe

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!