Computation of a degree of controllability via system discretization