reciprocal

From The K Language Wiki
Revision as of 11:22, 12 July 2021 by Razetime (talk | contribs) (add reciprocal page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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