HTMLPurifier_UnitConverter::div PHP Method

div() private method

Divides two numbers, using arbitrary precision when available.
private div ( string $s1, string $s2, integer $scale ) : string
$s1 string
$s2 string
$scale integer
return string
    private function div($s1, $s2, $scale)
    {
        if ($this->bcmath) {
            return bcdiv($s1, $s2, $scale);
        } else {
            return $this->scale((double) $s1 / (double) $s2, $scale);
        }
    }