function | since v0.0-927 | clojure.core/quot | Edit |
(quot n d)
Returns the quotient of dividing numerator n
by denominator d
.
Returns NaN
when d
is 0 (divide by 0 error).
quot[ient] of dividing numerator by denominator.
(defn quot
[n d]
(let [rem (js-mod n d)]
(fix (/ (- n rem) d))))