PHP » PYTHON |
login |
register |
about
|
|
In python, the double asterisk is the exponentiation operator.
As per example: print 4.2 ** 3 If you want to take strings, like bcpow() in PHP: print float('4.2') ** float('3') bcpow(PHP 4, PHP 5) bcpow — Raise an arbitrary precision number to another Description
string bcpow
( string $left_operand
, string $right_operand
[, int $scale
] )
Raise left_operand to the power right_operand . Parameters
Return ValuesReturns the result as a string. ExamplesExample #1 bcpow() example
<?phpSee Also
|
more
Recently updated
more
Most requested
|