On 6/14/15, Jeroen De Dauw <jeroendedauw(a)gmail.com> wrote:
Hey,
I'm using the #expr parser function provided by the Parser Functions
extension. I'd like it to use "," as decimal separator, and it currently
uses ".". Is there a way to change this nicer than installing String
Functions and doing a replace?
Cheers
--
Jeroen De Dauw -
http://www.bn2vs.com
Software craftsmanship advocate
Developer at Wikimedia Germany
~=[,,_,,]:3
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
If you have the content language of MediaWiki set to a locale that
uses commas as decimal separators, what Tgr said with doing {{#expr:
{{formatnum:121,22|R}}}}, would work. However, in a Locale like
english, this would not work.
Other alternatives to the dreaded string functions, is of course Lua :P
--
bawolff