protected function div($left, $right, $precision)
    {
        if (is_null($precision)) return $left / $right;
        return floatval(\bcdiv($left, $right, $precision));
    }
protected function div($left, $right, $precision)
    {
        if (is_null($precision)) return $left / $right;
        return floatval(\bcdiv($left, $right, $precision));
    }
protected function div ( $ left , $ right , $ precision ) { if ( is_null ( $ precision ) ) return $ left / $ right ; return floatval ( \ bcdiv ( $ left , $ right , $ precision ) ) ; }
Use bcdiv if precision is specified
otherwise use native division operator

@param $left
@param $right
@param $precision
@return float
Use bcdiv if precision is specified otherwise use native division operator