Changes for clojure.core/rem

iwilcox on Thu, 20 Mar 2014
;; rem and mod are commonly used to get the remainder.
;; mod means Gaussian mod, so the result is always
;; non-negative.  Don't confuse it with ANSI C's %
;; operator, which despite being although pronounced
;; 'mod' actually implements rem, i.e. -10 % 3 = -1.

user=> (mod -10 3)
2

user=> (rem -10 3)
-1
popopome on Tue, 12 Mar 2013
;; rem and mod are commonly used to get the remainder.
;; but when dealing with negative num(ber), the difference 
;; between rem and mod becomes obvious

;; mod means Gaussian's mod. So remainder always
;; should be positive value.
;; Remainder is same with % operator in ANSI C

user=> (mod -10 3)
2

user=> (rem -10 3)
-1
popopome on Tue, 12 Mar 2013
;; rem and mod are commonly used to get the remainder.
;; but when dealing with negative num(ber), the difference 
;; between rem and mod becomes obvious

;; mod means Gaussian's one
;; remainder is same with % operator in ANSI C

user=> (mod -10 3)
2

user=> (rem -10 3)
-1
OnesimusUnbound on Wed, 24 Aug 2011
;; rem and mod are commonly used to get the remainder.
;; but when dealing with negative num(ber), the difference 
;; between rem and mod becomes obvious

user=> (mod -10 3)
2

user=> (rem -10 3)
-1