Topic on Extension talk:NumberFormat

Stefahn (talkcontribs)

Hello Patrick & Pavel,

I just wanted to say "Thanks a lot" for this great extension!

On my site I show prices with help of SMW. The problem was that prices like 27,10 € were shown as 27,1 € and not as 27,10 €. First I played around with {{padright:{{#ifeq:{{#len:foo}}|2|foo,|foo}}|5|0}} (which worked), but then I found your extension which is much more convenient.

Just a hint for German users: If you have a number like 27,1 and want to convert it to 27,10 use the following code:

{{#number_format:your_number|2|,|.|,}}

Thanks again!

Pastakhov (talkcontribs)

Thanks for the feedback! I am glad that this extension helps you :-)

Reply to "Great extension!"