General

Profile

kranzky (Jason Hutchens)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

01/06/2014

02:44 PM Ruby Bug #9170: Math.sqrt returns different types when mathn is included; breaks various gems - this bug can be reproduced in Ruby 1.8 as well
mrkn (Kenta Murata) wrote:
> It's not a bug.
I'm a middle-man here, but I have gem maintainers claiming that it is a bug, because the documentation for Math.sqrt() indicates that it returns a Float, and that it's therefore OK to assu...
kranzky (Jason Hutchens)

11/28/2013

11:55 AM Ruby Bug #9170 (Closed): Math.sqrt returns different types when mathn is included; breaks various gems - this bug can be reproduced in Ruby 1.8 as well
Math.sqrt() usually returns a Float or throws an exception. Some gems rely on this behaviour (e.g. by calling nan? on the results of a calculation that includes a sqrt).
After requiring mathn, Math.sqrt() returns an Integer in some ca...
kranzky (Jason Hutchens)

Also available in: Atom