PHP » PYTHON |
login |
register |
about
|
As per example:
import math print math.sqrt(2) If you want to take a string, like bcsqrt() in PHP: import math print math.sqrt(float('2')) bcsqrt(PHP 4, PHP 5) bcsqrt — Get the square root of an arbitrary precision number Description
string bcsqrt
( string $operand
[, int $scale
] )
Return the square root of the operand . Parameters
Return ValuesReturns the square root as a string, or NULL if operand is negative. ExamplesExample #1 bcsqrt() example
<?php |
more
Recently updated
more
Most requested
more
Last requests
|