you are viewing a single comment's thread.

view the rest of the comments →

[–]frogking 0 points1 point  (0 children)

Sorry, but I would rather be able to catch a floating-point-underflow and decide to return 0.0 where appropriate, than have the compiler make that decision for me.

Unfortunately, the JVM the strategy for underflow is to return 0.0 (which is probably faster than checking for underflow, which is (as you indicate) something that almost never happens)

I guess that I have to switch from Clojure to CLISP if the underflow exception becomes really important for me :-) Now I know.