Template:DropChance: Difference between revisions

From Ephinea PSO Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#ifexpr: {{{1|0}}} < 10 | {{#expr: {{{1|0}}} round 2}} | {{#ifexpr: {{{1|0}}} < 100 | {{#expr: {{{1|0}}} round 1}} | {{#expr: {{{1|0}}} round 0}}}}}}
{{#ifexpr: {{{1|0}}} < 10 | 1/{{#expr: {{{1|0}}} round 2}} | {{#ifexpr: {{{1|0}}} < 100 | 1/{{#expr: {{{1|0}}} round 1}} | 1/{{#expr: {{{1|0}}} round 0}}}}}}
<noinclude>==Usage and example==
<noinclude>==Usage and example==
<pre>1/{{DropChance|3.1415927}}</pre>
<pre>{{DropChance|3.1415927}}</pre>
1/{{DropChance|3.1415927}}
{{DropChance|3.1415927}}
<pre>1/{{DropChance|63.2120558828557}}</pre>
<pre>{{DropChance|63.2120558828557}}</pre>
1/{{DropChance|63.2120558828557}}
{{DropChance|63.2120558828557}}
<pre>1/{{DropChance|555.55555}}</pre>
<pre>{{DropChance|555.55555}}</pre>
1/{{DropChance|555.55555}}
{{DropChance|555.55555}}
</noinclude>
</noinclude>

Revision as of 06:05, 17 October 2022

1/0

Usage and example

{{DropChance|3.1415927}}

1/3.14

{{DropChance|63.2120558828557}}

1/63.2

{{DropChance|555.55555}}

1/556