Re: Unchecked floating point division

2011-05-18 Thread Ken Wesson
On Wed, May 18, 2011 at 10:24 AM, David Nolen wrote: > On Tue, May 17, 2011 at 7:56 AM, Ken Wesson wrote: >> >> How does one perform an unchecked floating point division? (/ 1.0 0.0) >> throws an exception -- what goes in place of _ to make (_ 1.0 0.0) >> produce Double/POSITIVE_INFINITY? (And ru

Re: Unchecked floating point division

2011-05-18 Thread David Nolen
On Tue, May 17, 2011 at 7:56 AM, Ken Wesson wrote: > How does one perform an unchecked floating point division? (/ 1.0 0.0) > throws an exception -- what goes in place of _ to make (_ 1.0 0.0) > produce Double/POSITIVE_INFINITY? (And run faster than something that > does checking instead of just

Re: Unchecked floating point division

2011-05-18 Thread Jonathan Fischer Friberg
I don't know if there's something inbuilt, but this should work: https://gist.github.com/978643 Jonathan On Tue, May 17, 2011 at 1:56 PM, Ken Wesson wrote: > How does one perform an unchecked floating point division? (/ 1.0 0.0) > throws an exception -- what goes in place of _ to make (_ 1.0 0.