rem

functionsince v0.0-927 clojure.core/remEdit
(rem n d)

Details:

Returns the remainder of dividing numerator n by denominator d.

Returns NaN when d is 0 (divide by 0 error).


See Also:


Source docstring:
remainder of dividing numerator by denominator.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn rem
  [n d]
  (let [q (quot n d)]
    (- n (* d q))))