Power: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add power prim page)
 
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{primitive|x^y|in=K2, K3}}
{{primitive|x^y|in=K2, K3}}


'''Power''' raises one number to the power of another, and provides a float value.
'''power''' raises one number to the power of another, and provides a float value.


Power is [[atomicity|fully atomic.]]
Power is [[atomicity|fully atomic.]]
Line 10: Line 10:
</pre>
</pre>
{{Works in|Kona}}
{{Works in|Kona}}

[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]

Latest revision as of 06:42, 9 July 2022

Power
x^y
Supported in K2, K3

power raises one number to the power of another, and provides a float value.

Power is fully atomic.

 3 4^5 6
243 4096.0
Works in: Kona