(PHP 4, PHP 5)
bcadd — Addition zweier Zahlen beliebiger Genauigkeit
Addiert den left_operand (linken Operanden) zum right_operand (rechten Operanden).
Der linke Operand in Stringform.
Der rechte Operand in Stringform.
This optional parameter is used to set the number of digits after the decimal place in the result. You can also set the global default scale for all functions by using bcscale().
Die Summe beider Operanden in Stringform.
Example#1 bcadd()-Beispiel
<?php
$a = '1.234';
$b = '5';
echo bcadd($a, $b); // 6
echo bcadd($a, $b, 4); // 6.2340
?>