From: Paul Lutus Date: 2006-11-16T09:00:07+09:00 Subject: Re: Is 2.0 Integer or Float? Bernard Kenik wrote: / ... >> the :integer method returns false in this case. >> What would be a good way to write a different method to check? >> > x.class => Float 2.0 is a float not an integer The OP is trying to establish whether the _content_ of the float variable is an integer, not whether the variable has float type. That is relatively easy to establish. -- Paul Lutus http://www.arachnoid.com