From: kranthi reddy Date: 2008-07-02T18:53:54+09:00 Subject: Re: Ruby Exponents ------=_Part_345_9869938.1214992614593 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yeah even I dont any errors either through the ruby script or IRB ..can you paste the error you get when you use the script kranthi. On Wed, Jul 2, 2008 at 2:08 PM, Stefano Crocco wrote: > On Wednesday 02 July 2008, Tony Dermont wrote: > > Hi, > > > > I'm trying to calculate using exponential operator **. However, I get a > > crash with the following message > > > > wrong argument type Float (expected Fixnum) > > > > The values I am using are 0.713 ** 0.5555555 => THIS CRASHES > > > > But when I try this on a ruby command prompt, it works fine. Is there a > > way I can calculate using a float number as an exponent? > > > > Thanks. > > > > Tony > > Are you sure the error is due to that computation? It works perfectly for > me, > either in irb, passing it to ruby -e or putting it in a script. > > Stefano > > > ------=_Part_345_9869938.1214992614593--