At 02:46 why are we converting 1101 into base 10 number when we are getting output of 13 as 1011.
Doubt in decimal to binary using Bits
@supratik260699 hey on converting the any decimal to binary we first get the least significant bit, if we are storing the binary in string then as we get the least significant first it will be printed first, to prevent this we can reverse the string or, we can convert the number to base 10 , cause when we do so, least significant gets the smallest place value, and it is moved back.
If this resolves your doubt mark it as resolved.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.