Req #13756 [Com]: exponential ** operator

From: Date: Sun, 08 Jul 2012 23:31:23 +0000
Subject: Req #13756 [Com]: exponential ** operator
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171818@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=13756&edit=1 ID: 13756 Comment by: hello at wesalvaro dot com Reported by: sander@php.net Summary: exponential ** operator Status: Closed Type: Feature/Change Request Package: Feature/Change Request Operating System: n/a PHP Version: 4.0.6 Block user comment: N Private report: N New Comment: le why not? Previous Comments: ------------------------------------------------------------------------ [2002-04-27 16:17:03] jimw@php.net not going to happen. just suck it up and use pow(). ------------------------------------------------------------------------ [2001-10-19 18:51:47] jeroen@php.net I proposed that earlier (along with ^^) [ZendEnginge ML, june 27th & july 3rd]. Anyway, I think it should be added, there is simply no power operator now, and pow() is both a bit bugly and overloaded (both ^^ and ** at the same time). ------------------------------------------------------------------------ [2001-10-19 11:24:28] hholzgra@php.net ** is Pascal, not C ------------------------------------------------------------------------ [2001-10-19 10:36:03] sander@php.net It would be nice to have an exponential operator. ** would be a logical choice, just like in C. Example: echo 2**3; // prints 8 I know we have pow(), but an operator for this would be nice... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=13756&edit=1

« previous php.bugs (#171818) next »