0

I'm using this

$formatter = new NumberFormatter('en_US', NumberFormatter::PERCENT);
print $formatter->format(.45);
Result = 45%

How to change to 45.00% (show 2 decimal place)

Thank you

Collin Chu
  • 65
  • 3
  • 10
  • 3
    Does this answer your question? [Show a number to two decimal places](https://stackoverflow.com/questions/4483540/show-a-number-to-two-decimal-places) – misticos Oct 08 '20 at 15:45
  • hello and thank you @IvMisticos, i'm already look the link but still no match for answer that i look and because the documentation for NumberFormatter is so little hope someone know can help me – Collin Chu Oct 09 '20 at 02:04

0 Answers0