HTMLPurifier_UnitConverter::add PHP Method

add() private method

Adds two numbers, using arbitrary precision when available.
private add ( string $s1, string $s2, integer $scale ) : string
$s1 string
$s2 string
$scale integer
return string
    private function add($s1, $s2, $scale)
    {
        if ($this->bcmath) {
            return bcadd($s1, $s2, $scale);
        } else {
            return $this->scale((double) $s1 + (double) $s2, $scale);
        }
    }