Jump to content

Template:Mideval/doc

From Meta, a Wikimedia project coordination wiki

This template evaluates an expression and expresses the result without scientific notation. It was used before ParserFunctions allowed scientific notation in expressions. The result is in a form that is fairly readable ("Mid" in the name refers to "intermediate"). See also Template:Fineval.

Examples:

  • "{{mideval|.0000000000000000000000000123456789012345}}" gives "(12345.678901234 / 10000000000 / 10000000000 / 10000000000)" [1]
  • "{{mideval|.000000000000000123456789012345}}" gives "(12345.678901235 / 10000000000 / 10000000000)" [2]
  • "{{mideval|.00000123456789012345}}" gives "(12345.678901234 / 10000000000)" [3]
  • "{{mideval|12345.6789012345}}" gives "(12345.678901234)" [4]
  • "{{mideval|123456789012345}}" gives "(12345.678901234 * 10000000000)" [5]
  • "{{mideval|1234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000)" [6]
  • "{{mideval|12345678901234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000 * 10000000000)" [7]
  • "{{mideval|123456789012345678901234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [8]
  • "{{mideval|1234567890123456789012345678901234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [9]
  • "{{mideval|12345678901234567890123456789012345678901234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [10]
  • "{{mideval|123456789012345678901234567890123456789012345678901234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [11]
  • "{{mideval|1234567890123456789012345678901234567890123456789012345678901234567890123456789012345}}" gives "(12345.678901235 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [12]
  • "{{mideval|1234567891234567890123456789012345678901234567890123456789012345678901234567890123456789012345}}" gives "(1234.5678912346 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [13]
  • "{{mideval|1234567891234567891234567890123456789012345678901234567890123456789012345678901234567890123456789012345}}" gives "(123.45678912346 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)" [14]
  • {{mideval|{{powe|1024|40}}}} gives (25822498780.869 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)
  • {{mideval|{{powe|1024|10}}}} gives (1.2676506002282 * 10000000000 * 10000000000 * 10000000000)
  • {{mideval|{{powe|1.2676506002282 * 10000000000 * 10000000000 * 10000000000 |4}}}} gives (25822498780.867 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)
  • {{mideval|{{powe|1.26765060023 * 10000000000 * 10000000000 * 10000000000 |4}}}} gives (25822498781.013 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)
  • {{mideval|{{powe|{{mideval|{{powe|1024|10}}}}|4}}}} gives (25822498780.867 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000 * 10000000000)
  • {{#expr:{{mideval|{{powe|1024|40}}}}}} gives 2.5822498780869E+120
  • {{#expr:{{powe|mideval|{{powe|1024|40}}}}}} gives 2.5822498780869E+120