From: Marc Heiler Date: 2009-07-28T06:25:52+09:00 Subject: Re: What is the power function Prateek def power(a,b) result = (a ** b).to_i end puts power 2,4 # => "16" These small snippets are best tried in irb. You should use irb, really. -- Posted via http://www.ruby-forum.com/.