From: Axel Etzold Date: 2007-06-17T00:15:51+09:00 Subject: Re: Ruby arithmetic question. Salai, welcome to Ruby! You're right - 2**2 is 2 to the power of 2. Best regards, Axel -------- Original-Nachricht -------- Datum: Sun, 17 Jun 2007 00:02:16 +0900 Von: "Salai Khine" An: ruby-talk@ruby-lang.org Betreff: Ruby arithmetic question. > Dear all, > > I am very new to ruby language. I have some question in Ruby arthmetic > operation. > > Why did i get 2 ** 2 = 4 ?? > > a = 2 ** 2 > > puts a > > --> 4 > Why ? > > It is like 2 ^ 2 = 4 ??? > > regards, > salai. -- Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger