قالب:Decimals/doc

Usage

{{Decimals|number|decimals}}

Note that results are limited to 15 significant figures.

Examples

  • {{Decimals|1234|-2}} → 1200
  • {{Decimals|1234|0}} → 1234
  • {{Decimals|1234|1}} → 1234.0
  • {{Decimals|1234|2}} → 1234.00
  • {{Decimals|9/8|5}} → 1.12500
  • {{Decimals|0.0000067890123456789012345|20}} → 0.00000678901234567890
  • {{Decimals|0.67890123456789012345|20}} → 0.678901234567890
  • {{Decimals|67890.123456789012345|20}} → 67890.1234567890
  • {{Decimals|67890123456789012345|20}} → 6.7890123456789e+19
  • {{Decimals|1/33|7}} → 0.0303030
  • {{Decimals|0.006|1}} → 0.0

See also