SandBox: Difference between revisions
Jump to navigation
Jump to search
→#expr: new section |
→#expr: added source |
||
Line 5: | Line 5: | ||
[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr Help:Extension:ParserFunctions - MediaWiki #expr] | [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr Help:Extension:ParserFunctions - MediaWiki #expr] | ||
We can build a cent function | We can build a cent function: | ||
{{#expr: ln (9/8) / ln 2 * 1200}} | <nowiki>* {{#expr: ln (9/8) / ln 2 * 1200}} | ||
{{#expr: ln (3/2) / ln 2 * 1200}} | * {{#expr: ln (3/2) / ln 2 * 1200}} | ||
{{#expr: ln (5/4) / ln 2 * 1200}} | * {{#expr: ln (5/4) / ln 2 * 1200}}</nowiki> | ||
* {{#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] | but for formatting rounded results, it would be good to use [https://www.mediawiki.org/wiki/Extension:NumberFormat Extension:NumberFormat - MediaWiki] |
Revision as of 08:46, 23 October 2018
This is the sandbox. To experiment with editing, click on the [Edit] tab.
#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}}
- 203.91000173077
- 701.95500086539
- 386.31371386483
but for formatting rounded results, it would be good to use Extension:NumberFormat - MediaWiki
... which is currently not available:
12345678.055555