Bugs item #10853, was opened at 2007-05-15 18:38 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10853&group_id=426 Category: Core Group: 1.8.6 Status: Open Resolution: None Priority: 3 Submitted By: cory odaniel (corifornia) Assigned to: Nobody (None) Summary: Loss of precision during iteration. Initial Comment: Have found this on several machines. Was only able to test on Mac OS X (only thing available Ruby Ver 1.8.6 first_num = 1.00 last_num = 10.00 while first_num <= last_num puts first_num first_num += 0.1 end Notice that it loses percision at some point in time (found it varied from machine to machine) Also changing the range cause it to vary where the precision was lost. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10853&group_id=426