Template:DropChance: Difference between revisions

From Ephinea PSO Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#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}}}}}}
{{#ifexpr: {{{1|0}}} = 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>{{DropChance|0}}</pre>
{{DropChance|0}}
<pre>{{DropChance|3.1415927}}</pre>
<pre>{{DropChance|3.1415927}}</pre>
{{DropChance|3.1415927}}
{{DropChance|3.1415927}}

Revision as of 06:07, 17 October 2022

-

Usage and example

{{DropChance|0}}

-

{{DropChance|3.1415927}}

1/3.14

{{DropChance|63.2120558828557}}

1/63.2

{{DropChance|555.55555}}

1/556