(PHP 4, PHP 5, PHP 7)
bcadd — 2�����⾫�����ֵļӷ�����
$left_operand
, string $right_operand
[, int $scale
] ) : string
����������Ҳ��������
left_operand����������ַ�������
right_operand�Ҳ��������ַ�������
scale�˿�ѡ�����������ý����С������С��λ����Ҳ��ͨ��ʹ�� bcscale() ������ȫ��Ĭ�ϵ�С��λ�����������к�����
2�����������֮��Ľ�����ַ�������
Example #1 bcadd() ʾ��
<?php
$a = '1.234';
$b = '5';
echo bcadd($a, $b); // 6
echo bcadd($a, $b, 4); // 6.2340
?>