How can I calculate fast how many times a number needs to be divided by 2 to get its binary form?

43 Views Asked by At

If I wanted to know how many times the number x needs to be divided by 2 to get its binary form, is there a formula to calculate it? I can't find one.