From: Gunther Diemant Date: 2011-12-17T19:38:08+09:00 Subject: Re: round float to integer if whole number Converting to a string isn't better as directly comparing the numbers, it just adds more complexity to the code. 2011/12/16 Ronnie Aa : > Converting to a string was also one of my ideas. Although it was not > completely clear to me how to achieve that. > > So thanx for your input.. > > Only drawback of this method is it's lack of elegance I think... > > -- > Posted via http://www.ruby-forum.com/. >