2010/6/15 Stanislav Orlenko <orlenko.stas / gmail.com>

> Hi
> I have Fixnum. I want to check does this value integer or float, i. e.
> has .xx in the trail or not. How can I check this?
> Thanks in advance
> --
> Posted via http://www.ruby-forum.com/.
>
>
check your reference...
Fixnum are Integers, not float...
you are probably mislead by Numeric...  because Integer and Float are
Numeric

a = 0.1
a.class
=> Float

b = 1
b.class
=> Fixnum

a.is_a? Numeric
=> true

b.is_a? Numeric
=> true