|
BcMath\Number::floor任意精度数値を切り下げる 説明
public BcMath\Number BcMath\Number::floor()
必要に応じて $this を切り下げ、 $this の次に小さい整数値を返します。 パラメータこの関数にはパラメータはありません。 戻り値
結果を新しい BcMath\Number オブジェクトとして返します。
結果の BcMath\Number::scale は常に 例例1 BcMath\Number::floor の例
上の例の出力は以下となります。 object(BcMath\Number)#2 (2) { ["value"]=> string(1) "4" ["scale"]=> int(0) } object(BcMath\Number)#3 (2) { ["value"]=> string(1) "9" ["scale"]=> int(0) } object(BcMath\Number)#4 (2) { ["value"]=> string(2) "-4" ["scale"]=> int(0) } 参考
|