Skip to content
kevinlawler edited this page Aug 1, 2011 · 2 revisions

%x: The reciprocal (multiplicative inverse) of x. Equivalent to 1%x.
The reciprocal is not a self-inverse function on integer arguments because it always returns a float.

  %2
0.5
  % 0 1 2 3 4
0i 1 0.5 0.3333333 0.25
  %%2
2.0
Clone this wiki locally