#584: BigMath.sqrt always returns NaN
-------------------------------------+--------------------------------------
Reporter: hghoe...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.7
Component: MacRuby | Resolution: fixed
Keywords: |
-------------------------------------+--------------------------------------
Changes (by lsansone...@…):
* status: new => closed
* resolution: => fixed
* milestone: => MacRuby 0.7
Comment:
This seems to work for me (as of r4401):
{{{
$ /usr/local/bin/macruby -r bigdecimal/math -e 'p
BigDecimal.new("2").sqrt(10)'
#<BigDecimal:4004cb500,'0.1414213562 3730950488 016887185E1',32(32)>
$ /usr/local/bin/macruby -r bigdecimal -e 'p BigDecimal.new("2").sqrt(10)'
#<BigDecimal:4004c7480,'0.1414213562 3730950488 016887185E1',32(32)>
$ /usr/local/bin/macruby -r bigdecimal -r bigdecimal/math -e 'p
BigDecimal.new("2").sqrt(10)'
#<BigDecimal:4004cb820,'0.1414213562 3730950488 016887185E1',32(32)>
}}}
Please re-open if you still see the problem with trunk.
--
Ticket URL: <http://www.macruby.org/trac/ticket/584#comment:5>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel