Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter for number_format() #417

Closed
beberlei opened this issue Aug 13, 2011 · 4 comments
Closed

Filter for number_format() #417

beberlei opened this issue Aug 13, 2011 · 4 comments

Comments

@beberlei
Copy link

In apps with tons of statistical output I wish twig had a native number_format() that is Locale::setDefaultLocale() aware with regard to seperators and such.

@igorw
Copy link
Contributor

igorw commented Aug 13, 2011

That would be NumberFormatter then: http://php.net/numberformatter

@beberlei
Copy link
Author

Yah, the intl extension dependency problem (again). But the absense of number formatting filter is not a solution aswell. We could fallback to number_format() here?

@stof
Copy link
Member

stof commented Aug 15, 2011

Having a dependency to intl has already been rejected for the core. But it could be a good extension for the Twig-extension repo.

@beberlei
Copy link
Author

Well then just have number_format().

On Mon, Aug 15, 2011 at 8:31 PM, stof <
reply@reply.github.com>wrote:

Having a dependency to intl has already been rejected for the core. But it
could be a good extension for the Twig-extension repo.

Reply to this email directly or view it on GitHub:
https://github.com/fabpot/Twig/issues/417#issuecomment-1809713

markstory added a commit to markstory/Twig that referenced this issue Dec 28, 2011
@fabpot fabpot closed this as completed in a9c53bc Dec 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants