Dear friends,

I have an assignment to convert from binary to decimal... I know how to do it but only thing is I need to know how many digits are stored in my variable, for example :

110101

so if somehow I know there is 6 numbers I can make my loop and convert it to decimal very easy.

Thanks.