[MacRuby-devel] [MacRuby] #429: Floating point comparison

MacRuby ruby-noreply at macosforge.org
Tue Nov 10 12:19:52 PST 2009


#429: Floating point comparison
------------------------------------+---------------------------------------
 Reporter:  jens.nockert@…          |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  trivial                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------
 Some floating point comparisons seem to be giving different results in
 MacRuby and in MRI.

 macirb > (0.5 - 0.4) <= 0.1
       => false
 mriirb > (0.5 - 0.4) <= 0.1
       => true

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/429>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list