You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The currency pipe's documentation says the maxFractionDigits defaults to 3, but it looks like this defaults to 2. It also says the minFractionDigits default is 0, but it looks like it should be 2.
This was noticed after #27079 or else I would have addressed it with that issue, but it's the same type of issue.
**Edits
Expanded to include minFractionDigits
**Edits 2 The tests already cover the defaults, so the future PR will not add any.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Currency pipe documentation default for maxFractionDigits is 3, should be 2
Currency pipe documentation default for maxFractionDigits is 3, should be 2, minFractionDigits is 0, should be 2
Dec 3, 2018
📚 Docs or angular.io bug report
Description
The currency pipe's documentation says the maxFractionDigits defaults to 3, but it looks like this defaults to 2. It also says the minFractionDigits default is 0, but it looks like it should be 2.
🔬 Minimal Reproduction
What's the affected URL?**
https://angular.io/api/common/CurrencyPipe
Reproduction Steps**
This StackBlitz shows the default vs hardcoding what is in the docs for digitsInfo.
Expected vs Actual Behavior**
The docs should reflect the actual default.
Anything else relevant?
This was noticed after #27079 or else I would have addressed it with that issue, but it's the same type of issue.
**Edits
Expanded to include minFractionDigits
**Edits 2
The tests already cover the defaults, so the future PR will not add any.
The text was updated successfully, but these errors were encountered: