SandBox: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
#expr: new section
ArrowHead294 (talk | contribs)
mNo edit summary
 
(62 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{SandBox please edit after this line}}
[[Category:Sandboxes]] {{SandBox please edit after this line}}


== #expr ==
~~<noinclude />~~


[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr Help:Extension:ParserFunctions - MediaWiki &#35;expr]
833.090{{c}}
 
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&#58;NumberFormat - MediaWiki]
 
... which is currently not available:
 
{{#number_format:12 345 678,055555|_|.||,}}

Latest revision as of 16:06, 6 August 2025


This is the sandbox. To experiment with editing, click on the [Edit] tab.

~~~~

833.090 ¢