HTMLPurifier_UnitConverter::mul PHP Method

mul() private method

Multiples two numbers, using arbitrary precision when available.
private mul ( string $s1, string $s2, integer $scale ) : string
$s1 string
$s2 string
$scale integer
return string
    private function mul($s1, $s2, $scale)
    {
        if ($this->bcmath) {
            return bcmul($s1, $s2, $scale);
        } else {
            return $this->scale((double) $s1 * (double) $s2, $scale);
        }
    }