Hi, all. (clojure.contrib.math/exact-integer-sqrt 1000000000000) => [65536 995705032704]
due to typo in "integer-length". must be: (clojure.contrib.math/exact-integer-sqrt 1000000000000) => [1000000 0] -- aside, does "integer-sqrt" need to be public? --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
--- math.clj.old 2009-03-29 22:22:25.000000000 +0900 +++ math.clj 2009-03-29 21:59:48.000000000 +0900 @@ -136,7 +136,7 @@ (defmethod integer-length java.lang.Integer [n] (count (Integer/toBinaryString n))) (defmethod integer-length java.lang.Long [n] - (count (Integer/toBinaryString n))) + (count (Long/toBinaryString n))) (defmethod integer-length java.math.BigInteger [n] (count (. n toString 2)))