Jump to content

Template:Expr

From mediawiki.org
Template documentation

This template is like #expr, but without the inconsistency in using scientific format.

Examples

[edit]
  • {{exprf|1e-4/7}} → 0
  • {{exprf|.001/7}} → 0.00014285714285714
  • {{exprf|1.2}} → 1.2
  • {{exprf|1e10/7}} → 1,428,571,428.5714
  • {{exprf|12e5}} → 1,200,000
  • {{exprf|13e5}} → 1,300,000
  • {{exprf|12e10}} → 120,000,000,000
  • {{exprf|12e11}} → 1,200,000,000,000
  • {{exprf|12e12}} → 12,000,000,000,000
  • {{exprf|1e14/7}} → 14,285,714,285,714
  • {{exprf|1e17}} → 100,000,000,000,000,000
  • {{exprf|12e16}} → 120,000,000,000,000,000
  • {{exprf|123e15}} → 123,000,000,000,000,000
  • {{exprf|1234e14}} → 123,400,000,000,000,000
  • {{exprf|12345e13}} → 123,450,000,000,000,000
  • {{exprf|123456e12}} → 123,456,000,000,000,000
  • {{exprf|1234567e11}} → 123,456,700,000,000,000
  • {{exprf|12345678e10}} → 123,456,780,000,000,000
  • {{exprf|123456789e9}} → 123,456,789,000,000,000
  • {{exprf|1234567891e8}} → 123,456,789,100,000,000
  • {{exprf|12345678912e7}} → 123,456,789,120,000,000
  • {{exprf|123456789123e6}} → 123,456,789,123,000,000
  • {{exprf|1234567891234e5}} → 123,456,789,123,400,000
  • {{exprf|1e15/7}} → 142,857,142,857,140
  • {{exprf|1e16/7}} → 1,428,571,428,571,400
  • {{exprf|1e17/7}} → 14,285,714,285,714,000
  • {{exprf|1e18/7}} → 142,857,142,857,140,000
  • {{exprf|1e19/7}} → 1,428,571,428,571,400,000
  • {{exprf|1e20/7}} → 14,285,714,285,714,000,000
  • {{exprf|1e21/7}} → 142,857,142,857,140,000,000
  • {{exprf|4.1e6}} → 4,100,000