Converting binary to decimal integer output
You can use int and set the base to 2 (for binary): However, if you cannot use int like that, then you could always do this: Below is a demonstration:
You can use int and set the base to 2 (for binary): However, if you cannot use int like that, then you could always do this: Below is a demonstration: