[MacRuby-devel] [MacRuby] #584: BigMath.sqrt always returns NaN

MacRuby ruby-noreply at macosforge.org
Tue Aug 3 00:34:46 PDT 2010


#584: BigMath.sqrt always returns NaN
-------------------------------------+--------------------------------------
 Reporter:  hghoehne@…               |        Owner:  lsansonetti@…        
     Type:  defect                   |       Status:  closed               
 Priority:  major                    |    Milestone:  MacRuby 0.7          
Component:  MacRuby                  |   Resolution:  fixed                
 Keywords:                           |  
-------------------------------------+--------------------------------------
Changes (by lsansonetti@…):

  * 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/>



More information about the MacRuby-devel mailing list