SandBox: Difference between revisions

Xenwolf (talk | contribs)
moved standardized content to Template:SandBox please edit after this line and included it
Xenwolf (talk | contribs)
#expr: new section
Line 1: Line 1:
{{SandBox please edit after this line}}
{{SandBox please edit after this line}}
== #expr ==
[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr Help:Extension:ParserFunctions - MediaWiki #expr]
We can build a cent function
{{#expr: ln (9/8) / ln 2 * 1200}}
{{#expr: ln (3/2) / ln 2 * 1200}}
{{#expr: ln (5/4) / ln 2 * 1200}}
but for formatting rounded results, it would be good to use [https://www.mediawiki.org/wiki/Extension:NumberFormat Extension:NumberFormat - MediaWiki]
... which is currently not available:
{{#number_format:12 345 678,055555|_|.||,}}