From: James Edward Gray II Date: 2006-04-28T06:59:31+09:00 Subject: Re: is_number function ? On Apr 27, 2006, at 4:56 PM, Todd S. wrote: > Is there a function in core ruby to determin if a variable is a number > or not? > > something like @XX.is_numeric? or is_number(@XX) >> "hello".is_a? Numeric => false >> 3.is_a? Numeric => true Hope that helps. James Edward Gray II