Template:Pow
From The Scuba Wiki
(Difference between revisions)
Revision as of 23:48, 22 March 2008
Allows a number be raised to an integer power from -150 to 150. Powers of greater than 150 are treated as 150 and those less than -150 as -150.
Usage: {{pow|<base>|<power>}}
Examples:
"{{pow|20|150}}"
gives "1.427247692706E+195" [1]"{{pow|2|150}}"
gives "1.427247692706E+45" [2]"{{pow|2|40}}"
gives "1099511627776" [3]"{{pow|2|30}}"
gives "1073741824" [4]"{{pow|2|20}}"
gives "1048576" [5]"{{pow|2|10}}"
gives "1024" [6]"{{pow|2|0}}"
gives "1" [7]"{{pow|2|-10}}"
gives "0.5" [8]"{{pow|2|-20}}"
gives "0.5" [9]"{{pow|2|-30}}"
gives "0.5" [10]"{{pow|2|-150}}"
gives "0.5" [11]"{{pow|20|-150}}"
gives "0.05" [12]