Access row of matrix based on when value is equal to something specific

a = rand(10,2)

b = a[:,2] .> 0.5

a[b,:]
5×2 Array{Float64,2}:
 0.610937   0.578347
 0.991965   0.681461
 0.553017   0.820753
 0.47222    0.997207
 0.0896303  0.740422

Just use .== or maybe isapprox instead of .>