Why is this?
= (mod (math-function/pow 11 23) 187)
1.34217728E8
11^23 mod 187 is 88
Is there a limitation I'm unaware of?
Thanks,
Nick
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
The pow function returns a double, which doesn't work properly with mod.
Use expt from clojure.math.numeric-tower.
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from