Re: [Wikitech-l] Using , as decimal separator in #expr
On 6/14/15, Jeroen De Dauw jeroended...@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@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 ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Using , as decimal separator in #expr
On Sun, Jun 14, 2015 at 3:58 PM, Jeroen De Dauw jeroended...@gmail.com wrote: 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? Are you maybe looking for {{formatnum|R}}? ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Wikitech-l] Using , as decimal separator in #expr
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l