user> Double/MAX_VALUE 1.7976931348623157E308 >From http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html : "A constant holding the largest positive finite value of type double, (2-2^ -52)ยท2^1023. It is equal to the hexadecimal floating-point literal 0x1.fffffffffffffP+1023 and also equal to Double.longBitsToDouble(0x7fefffffffffffffL). "
To explain the decimal exponent, user> (/ (Math/log 10) (Math/log 2)) 3.3219280948873626 user> (/ 1024 3.3219280948873626) 308.2547155599167 --Leif On Tuesday, June 26, 2012 12:19:49 AM UTC-4, Cedric Greevey wrote: > > user=> 1e308 > 1.0E308 > > user=> (* 10.0 1e308) > Infinity > > user=> 1e309 > Infinity > > Whuh? Double precision exponents should go up to 1023 and single > precision shouldn't go above 127. There's no floating point format in > commonplace use that maxes out its exponent at 308. > > What is going on here? > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
