Template:DropChance: Difference between revisions

From Ephinea PSO Wiki
(Created page with "{{#ifexpr: {{{1|}}} < 10 | {{#expr: {{{1|}}} round 2}} | {{#ifexpr: {{{1|}}} < 100 | {{#expr: {{{1|}}} round 1}} | {{#expr: {{{1|}}} round 0}}}}}}<noinclude>==Usage and example== <pre>1/{{DropChance|3.1415927}}</pre> 1/{{DropChance|3.1415927}} <pre>1/{{DropChance|63.2120558828557}}</pre> 1/{{DropChance|63.2120558828557}} <pre>1/{{DropChance|555.55555}}</pre> 1/{{DropChance|555.55555}} </noinclude>")
 
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexpr: {{{1|}}} < 10 | {{#expr: {{{1|}}} round 2}} | {{#ifexpr: {{{1|}}} < 100 | {{#expr: {{{1|}}} round 1}} | {{#expr: {{{1|}}} round 0}}}}}}<noinclude>==Usage and example==
{{#ifeq: {{DropCalc|{{{1|0}}}|{{{2|0}}}}} | - | {{#if:{{{3|}}}|0|}} | {{#ifexpr: {{DropCalc|{{{1}}}|{{{2}}}}} < 10 | {{DropSimplify|1/{{#expr: {{DropCalc|{{{1}}}|{{{2}}}}} round 2}}}} | {{#ifexpr: {{DropCalc|{{{1}}}|{{{2}}}}} < 100 | {{DropSimplify|1/{{#expr: {{DropCalc|{{{1}}}|{{{2}}}}} round 1}}}} | {{DropSimplify|1/{{#expr: {{DropCalc|{{{1}}}|{{{2}}}}} round 0}}}}}}}}}}
<pre>1/{{DropChance|3.1415927}}</pre>
<noinclude>==Usage and example==
1/{{DropChance|3.1415927}}
<pre>{{DropChance|0|0}}</pre>
<pre>1/{{DropChance|63.2120558828557}}</pre>
{{DropChance|0|0}}
1/{{DropChance|63.2120558828557}}
<pre>{{DropChance|100|7/8}}</pre>
<pre>1/{{DropChance|555.55555}}</pre>
{{DropChance|100|7/8}}
1/{{DropChance|555.55555}}
<pre>{{DropChance|80|9/16}}</pre>
{{DropChance|80|9/16}}
<pre>{{DropChance|15|9/16}}</pre>
{{DropChance|15|9/16}}
<pre>{{DropChance|28|1/2340.57}}</pre>
{{DropChance|28|1/2340.57}}
</noinclude>
</noinclude>

Latest revision as of 08:04, 8 April 2023

Usage and example

{{DropChance|0|0}}


{{DropChance|100|7/8}}

7/8

{{DropChance|80|9/16}}

1/2.22

{{DropChance|15|9/16}}

1/11.9

{{DropChance|28|1/2340.57}}

1/8359