From: Nathan Oyama Date: 2010-01-10T05:01:25+09:00 Subject: Re: Decimal in for loop? > while or until would both work. > x = 0 > while x < 0.5 do > p x > x += 0.1 > end > > x = 0 > until x > 0.4 > p x > x += 0.1 > end Yes, it is, but it looks badly long. . . As I program in Ruby, I want to write a code as clearly as possible. Anyway, thanks a lot for your help, Aaron. Your suggestion makes another question, so please see the new thread 'Ruby editing style rules and recommendation?' Thanks in advance, Nathan -- Posted via http://www.ruby-forum.com/.