I'm working on an RPN calculator (don't ask why...) and I'm having trouble getting a number from gets - how am I supposed to know whether it's a number? At the moment I'm doing [eval(oper) == oper.to_f], which is far from ideal. Any ideas? You all get to win my calculator if you know of a better way :D. -- Posted via http://www.ruby-forum.com/.