Stanislav Orlenko wrote: > 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? "Fixnum" means "fixed point", or really "small integer": a Fixnum can never be a float. $ irb --simple-prompt >> 3.is_a?(Fixnum) => true >> 3.0.is_a?(Fixnum) => false >> 3.0.is_a?(Integer) => false >> 3.0.is_a?(Float) => true >> 3.0.is_a?(Numeric) => true >> -- Posted via http://www.ruby-forum.com/.