Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Add precision for currency filter #5674

Closed

Conversation

park9140
Copy link

@park9140 park9140 commented Jan 7, 2014

Depends on #5672.

This adds the fractionSize parameter to the currency filter.

For some, the common fractionSize of 2 needs to be overridden in certain scenarios.

Example: gas pricing in the US where the price is actually accurate to 3 decimal places.

@ghost ghost assigned tbosch Jan 8, 2014
@Kazark
Copy link

Kazark commented Mar 3, 2014

+1. Please pull this in. Though it seems odd and it is probably rare to want more than 2 decimal places of precision, there are certain business cases where it is actually needed. We ran into one today and our workaround is messy.

@park9140
Copy link
Author

park9140 commented Mar 3, 2014

Just in case anyone seeing this doesn't know. Angular i18n support doesn't currently support precision for different locales. #5672 fixes this issue and should be pulled asap, to fix this fairly massive bug.

@petebacondarwin petebacondarwin self-assigned this Jul 25, 2014
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Jul 27, 2014
It should pass through the currency number pattern from the current locale

Closes angular#5674
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Jul 27, 2014
It should pass through the currency number pattern from the current locale

Closes angular#5674
@petebacondarwin
Copy link
Contributor

Moved to #8363

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants