Topic on Extension talk:NumberFormat

Question about thousands separator

2
Uncopy (talkcontribs)

Our wiki needs to get for example 1234.50 from 1234.501 (IOW: no thousands separator and 2 decimal places) but the round function of PHP doesn't keep dangling zeros and therefore the same is true for the round available in #expr. Would we get the requested result by {{#number_format:1234.501|2|.|}}?

Maybe this question seem redundant, but the combination of empty thousands_sep and dangeling zeros is crucial for us and the French example combines a lot of features which (sort of) confuses me. Thanks for your help :)
--Uncopy (talk) 21:17, 26 October 2018 (UTC)

BTW: the example link is broken. Hopefully, the next will be somewhere on https://xen.wiki --Uncopy (talk) 21:37, 26 October 2018 (UTC)
Pastakhov (talkcontribs)

Hi,

{{#number_format:1234.501|2|.|}}

returns 1234.50

Reply to "Question about thousands separator"