Number of times boundary was hit = 6
⇒ Number of times boundary was not hit = 30 - 6 = 24
Therefore,
Probability that the batsman did not hit the boundary
$=\frac{\text{No. of times boundary was not hit}}{\text{Total number of balls played}}$
$=\frac{24}{30}$
$=\frac{4}{5}=0.8$