Re: Calculations and exponents in languages
| From: | Robin Vickery | Date: | Wed, 28 Jun 2006 16:54:56 +0000 |
| Subject: | Re: Calculations and exponents in languages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238814@lists.php.net to get a copy of this message | ||
On 28/06/06, tg-php@gryffyndevelopment.com
<tg-php@gryffyndevelopment.com> wrote:
Huh.. thanks for the illustration Robin. Can't say that I did much with exponents when I've played around with perl or python or C.. and never worked with Java. You've expanded my view. Ok, now what languages DO use ^ for exponents?The only one I can think of off the top of my head is BASIC. Even Bash uses ^ as an xor operator: $ echo $(( 7 ^ 2 )) 5 $ echo $(( 7 ** 2 )) 49 -robin