Feature #45923

adjustable number of decimal points for f:format.currency

Added by Josef F. Glatz (Old User) about 9 years ago. Updated over 8 years ago.

Won't have this time
Target version:
Start date:
Due date:
% Done:


Estimated time:
Has patch:


From time to time it's useful to have an extra attribute to set the number of decimal points. Because of the fact that especially for large amounts of money (e.g. realty objects, luxury) no decimals are required, this should be configurable.


Updated by Adrian Föder almost 9 years ago

  • Status changed from New to Rejected
  • Priority changed from Should have to Won't have this time

IMO that crosses the border to the need of an own ViewHelper, because one would need to have an en dash as replacement for decimals, one wants a non-breaking semi space as thousands separator, etc.

Exactly this stuff is mostly "business/project logic" where you want all prices to be formatted particularly, this even more calls for an own, package specific currency formatting view helper.

I'll presume to reject it so far and have a team member a look at it; anyways feel free to reopen if you disagree.


Updated by Bastian Waidelich almost 9 years ago

I agree to Adrian. Besides, if the representation of a number really is part of the domain in some cases the model could already format it, so that {luxury.price} is enough in the view


Updated by Josef F. Glatz (Old User) over 8 years ago

Thanks for the feedback. That's ok for me ;)

Also available in: Atom PDF