$tot è

$perc = $row2["Opzione".$a] * 100 / $somma;
$tot = round($perc, 2);