kranthi reddy
7/2/2008 9:54:00 AM
[Note: parts of this message were removed to make it a legal post.]
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 <stefano.crocco@alice.it>
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
>
>
>