[MacRuby] #1211: (120 * 0.2).floor should be 24, but MacRuby rounds it down to 23

MacRuby ruby-noreply at macosforge.org
Wed Mar 30 17:43:48 PDT 2011


#1211: (120 * 0.2).floor should be 24, but MacRuby rounds it down to 23
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------
 120 * 0.2 = 24.0

 So calling #floor should return 24, but it returns 23 instead!

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



More information about the macruby-tickets mailing list