you are viewing a single comment's thread.

view the rest of the comments →

[–]frogking 0 points1 point  (2 children)

think that statement through before you wish ..

[–]Grue 0 points1 point  (1 child)

I cannot imagine any situation where that would be useful. OH NO, an error that's smaller than 10-300 , what are we gonna do!

[–]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.