bcsqrt
(PHP 3, PHP 4, PHP 5)
bcsqrt -- 任意精度数値の平方根を得ます
説明
string
bcsqrt ( string operand [, int scale] )
operand の平方根を返します。
オプションの scale パラメータは、結果における
小数点以下の桁数を指定するために使用します。
例
例 1. bcsqrt() の例
<?php
echo bcsqrt('2', 3); // 1.414
?>
|
|
レンタルサーバー
SNSレンタル
SNS