Added an param to the viewhelper to set the number of decimals.
add number of decimals to the numberFormat viewhelper
How about adding setAttribute() and setSymbol() methods, to allow setting all attributes and symbols? Ping @cgmartin
Looking back at this filter I'm questioning it's overall value vs. just using NumberFormatter directly in the view with the custom params/attributes. Are we over-engineering this? (Probably too late to ask at this point)
Considering that CurrencyFormat helper's use case is for simplifying currency formatting and NumberFormat is for "other" numbers, is the decimal attribute all that we'd need to make NumberFormat flexible for ~90% of use-cases?
If it isn't just decimals, I'd agree with @micheh to make it relatively maintenance free by supporting all attributes and symbols (and/or text attributes).
I agree with @cgmarin's considerations. @weierophinney what do you think?
It isn't just decimals -- we also have to consider other separators, such as thousands, millions, etc. as those vary from locale to locale. It looks like those are already covered though. This may be enough.
Merge branch 'feature/3646' into develop
Merged to the develop branch for 2.2.0.