From: Stefano Crocco Date: 2008-07-02T17:38:24+09:00 Subject: Re: Ruby Exponents 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