On Tue, Nov 2, 2010 at 3:22 PM, box <somethingital...@gmail.com> wrote: > Math/abs doesn't always return positive numbers. example:
Have you tried this on 1.3.0-master-SNAPSHOT? user=> (def min-int -2147483648) #'user/min-int user=> (Math/abs min-int) 2147483648 user=> (def min-int+1 (+ 1 min-int)) #'user/min-int+1 user=> min-int+1 -2147483647 user=> (Math/abs (- min-int+1 1)) 2147483648 user=> (Math/abs (- Integer/MIN_VALUE 1)) 2147483649 -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- 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 new members are moderated - please be patient with your first post. 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