Template:Pow

出自維基百科,自由嘅百科全書
Jump to navigation Jump to search

Template:Template documentation

Allows a number be raised to a small integer power.

Syntax:
{{Pow|base|power}}
  • The base and power can be any valid numeric expression.
Note:
  • Powers greater than 20 are treated as 20.
  • Powers less than -20 are treated as -20.
  • Any decimals in the power are treated as the next lower integer value (e.g. 17.6 = 17 and -3.1 = -4).
Example:
  • {{Pow|2|5}} = 32
  • {{Pow|10|6}} = 1000000
  • {{Pow|10|-4}} = 0.0001
  • {{Pow|5+5|6-10}} = 0.0001