Skip to content

Instantly share code, notes, and snippets.

@GregorStocks
Created May 6, 2016 03:15
Show Gist options
  • Save GregorStocks/c48ead81c55fa9f92a820ca807ce0112 to your computer and use it in GitHub Desktop.
Save GregorStocks/c48ead81c55fa9f92a820ca807ce0112 to your computer and use it in GitHub Desktop.
weird-abs.core=> (Math/abs -10000000000000)
10000000000000
weird-abs.core=> (def a -10000000000000)
#'weird-abs.core/a
weird-abs.core=> (Math/abs a)
1316134912
@puredanger
Copy link

puredanger commented May 6, 2016

Which JRE version and Clojure version was this with?

@puredanger
Copy link

Ah, I see it with JDK 8 and expected behavior with JDK 7 (I'm using Oracle build for both).

@puredanger
Copy link

I moved this to here http://dev.clojure.org/jira/browse/CLJ-1921 - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment