Template:Powf

From Meta, a Wikimedia project coordination wiki

Jump to: navigation, search

Like template:pow ( talk edit history links ), allows a number be raised to a power from -20 to 20. Powers of greater than 20 are treated as 20 and those less than -20 as -20. Optionally allows multiplication by a third parameter (applying #expr using the result of pow does not work if the power is in scientific notation). All parameters can be expressions.

Usage:
{{powf|<base>|<power>|<factor>}}

Examples:

  • {{powf|100|-4|3+1/7}} gives 3.1428571428571E-8
  • {{powf|1+1/20|20}} gives 2.6532977051444
  • {{powf|{{powf|1+1/400|20}}|20}} gives 2.714891744382

Edit powf/explanation