From: Ronnie Aa Date: 2011-12-15T07:21:24+09:00 Subject: Re: round float to integer if whole number Gunther Diemant wrote in post #1036785: > Possible tests: > ff.floor == ff > ff % 1 == 0 > > If x is always an integer i would use the mod operator ( x % w == 0 > ==> x/w integer) > > 2011/12/14 Ronnie Aa : thanxs Gunther! -- Posted via http://www.ruby-forum.com/.