Template:Numdisplay: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Kiokurashi
No edit summary
Line 1: Line 1:
{{#iferror: {{#expr: {{{1}}}}} | ? |<!--
{{#iferror:{{
-->{{#vardefine: coin1 | {{#iferror: {{#expr: {{{1}}}}}| 0}} }}<!--
#ifexpr:(({{{1}}}) >= 1E+27)|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+27}} round 1}}}} AE}}{{
-->{{#vardefine: coin2 | {{#iferror: {{#expr: {{{1}}} div 10^3 fmod 1000 }} | 0}} }}<!--
#ifexpr:((({{{1}}}) >= 1E+24) and (({{{1}}}) < 1E+27))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+24}} round 1}}}} AD}}{{
-->{{#vardefine: coin3 | {{#iferror: {{#expr: {{{1}}} div 10^6 fmod 1000 }} | 0}} }}<!--
#ifexpr:((({{{1}}}) >= 1E+21) and (({{{1}}}) < 1E+24))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+21}} round 1}}}} AC}}{{
-->{{#vardefine: coin4 | {{#iferror: {{#expr: {{{1}}} div 10^9 fmod 1000 }} | 0}} }}<!--
#ifexpr:((({{{1}}}) >= 1E+18) and (({{{1}}}) < 1E+21))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+18}} round 1}}}} AB}}{{
 
#ifexpr:((({{{1}}}) >= 1E+15) and (({{{1}}}) < 1E+18))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+15}} round 1}}}} AA}}{{
-->{{#ifexpr: {{{1}}} >= 10^9 AND {{{1}}} |{{#ifexpr: {{#var: coin4}} > 0 | {{#var: coin4}}B}}}} <!--
#ifexpr:((({{{1}}}) >= 1E+12) and (({{{1}}}) < 1E+15))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+12}} round 1}}}} T}}{{
-->{{#ifexpr: {{{1}}} >= 10^6 AND {{{1}}} < 10^9|{{#ifexpr: {{#var: coin3}} > 0 | {{#var: coin3}}M}}}} <!--
#ifexpr:((({{{1}}}) >= 1E+9) and (({{{1}}}) < 1E+12))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+9}} round 1}}}} B}}{{
-->{{#ifexpr: {{{1}}} >= 10^3 AND {{{1}}} < 10^6|{{#ifexpr: {{#var: coin2}} > 0 | {{#var: coin2}}K}}}} <!--
#ifexpr:((({{{1}}}) >= 1E+6) and (({{{1}}}) < 1E+9))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+6}} round 1}}}} M}}{{
-->{{#ifexpr: {{{1}}} < 1000 AND {{{1}}}| {{#var: coin1}}}}<!--
#ifexpr:((({{{1}}}) >= 1E+4) and (({{{1}}}) < 1E+6))|{{formatnum:{{#expr:{{#expr:({{{1}}}) / 1E+3}} round 1}}}} K}}{{
-->}}
#ifexpr:((({{{1}}}) >= 0) and (({{{1}}}) < 1E+4))|{{formatnum:{{{1}}}}}}}<!--  
iferror closing tag -->}}

Revision as of 04:42, 4 June 2021