From: sto.mar@... Date: 2012-11-05T23:25:05+09:00 Subject: Re: Simple question Am 05.11.2012 15:14, schrieb Carlo E. Prelz: > Subject: Re: Simple question > Date: Mon 05 Nov 12 10:52:15PM +0900 > > Quoting August Y. (lists@ruby-forum.com): >> area=pi*($radus^2) >> C:/Users/jyoung/objects.rb:20:in `*': true can't be coerced into Float >> pi is defigned and $radus is to.f so what am i missing > ^ is the exclusive-or operator. It returns a boolean value. Which > cannot be multiplied by a float. depends on $radus, which is probably nil. For an Integer int^2 would return an Integer, and for a Float there would be a NoMethodError. But: nil^2 => true --