September 2001
Intermediate to advanced
768 pages
32h 45m
English
string bcsqrt(string left_operand, [int scale])
| left_operand | Number to calculate from |
| scale | Number of decimal places to return |
Calculates square root.
Returns:
Square root of left operand
Description:
bcsqrt() calculates the square root of a given number and returns the result, formatted with a specified number of decimal places (optional).
Version:
Existing since version 3.0
Example:
$num1 = "9912343.21";
echo bcsqrt($num1, 3);
Output:
3148.387
|
Read now
Unlock full access