From: Louis-Philippe Date: 2010-06-16T01:03:26+09:00 Subject: Re: check Fixnum --001636163fbbf771e1048913a26b Content-Type: text/plain; charset=ISO-8859-1 2010/6/15 Stanislav Orlenko > 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 --001636163fbbf771e1048913a26b--