Difference between revisions of "Template:High-use/num"

From SdNOG wiki
Jump to navigation Jump to search
sdnog_wiki>TerraCyprus
(three significant digits for numbers > 100,000)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 17:15, 28 August 2019

{{#iferror:{{#expr:0+{{{1}}}*1}}|{{#ifeq:|risk|a very large number of|many}}|{{#ifeq:|yes||approximately }}{{#ifeq:{{#expr:7 < 6}}|1|{{#ifeq:{{{1}}}|0

|0
|{{significant figures/{{#if:2
  |rnd
  |sum
 }}
 |1={{{1}}}
 |2=2
 |3={{safesubst:#ifexpr:{{{1}}}=0
  |{{safesubst:#ifexpr:abs{{{1}}}1=1
     |0
     |{{safesubst:#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}}
   }}
  |{{#expr:floor((ln(abs({{{1}}}) )/ln 10)+1E((abs{{{1}}}>1E100 or abs{{{1}}}<1E-100)-14))}}

}}

}}

}}|{{#ifeq:|0

|0
|{{significant figures/{{#if:3
  |rnd
  |sum
 }}
 |1=
 |2=3
 |3={{safesubst:#ifexpr:=0
  |{{safesubst:#ifexpr:abs1=1
     |0
     |{{safesubst:#expr:floor((ln(abs1)/ln10)+1)}}
   }}
  |{{#expr:floor((ln(abs() )/ln 10)+1E((abs>1E100 or abs<1E-100)-14))}}

}}

}}

}}}}{{#ifeq:|yes|+}}{{#if:| pages, which is ≈{{#expr:(*100/361) round 0}}% of all}}}}

50px Template documentation
Examples
Script error: No such module "DemoTemplate".
Script error: No such module "DemoTemplate".
Script error: No such module "DemoTemplate".
Script error: No such module "DemoTemplate".
Script error: No such module "DemoTemplate".