Reciprocal: Difference between revisions

From The K Language Wiki
Content added Content deleted
m (Lowercase title)
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{lowercase title}}
{{primitive|%x|in=K2, K3}}
{{primitive|%x|in=K2, K3}}


Line 15: Line 14:
</pre>
</pre>
{{works in|Kona}}
{{works in|Kona}}

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

Latest revision as of 06:42, 9 July 2022

Reciprocal
%x
Supported in K2, K3

reciprocal returns the reciprocal or multiplicative inverse of a number, as a float.

The reciprocal primitive is right atomic.

  %2
0.5
  % 0 1 2 3 4
0i 1 0.5 0.3333333 0.25
  %%2
2.0
Works in: Kona