Wednesday, September 16, 2015, 6:53:39 PM, Evangelia Dendramis wrote:

> Seems like an OK feature.  +1.  
>
> I would like to note that as a front-end I've never needed that
> level of flexibility for decimals since that logic has always been
> handled in the backend.

Yes, ideally, the number formats are set in the backend. But how did
you do that? People usually set the "number_format" setting in the
Configuration, but that has this limitation that you could only
specify the pattern part of DecimalFormat. Now you can use "extended
decimal format strings" there. (Plus, in 2.3.24, for a while, you can
also define logical number formats, like "price", "weight", etc., and
then in the template write ${latitude?string.@price} and such.)

> I've really only ever needed to manipulate the format for locales.
> That's not to say the feature wouldn't be useful for a numbers-heavy
> app, e.g. something finance or statistics related.

More flexible number and date formatting is a recurring request, so
it's clearly needed. The question is how to do it. Right now it's
extended DecimalFormat format strings, and the possibility of
registering custom formatters (so you need not use DecimalFormat or
SimpleDateFormat).

-- 
Thanks,
 Daniel Dekany

Reply via email to