in reply to Re^6: converting binary to decimal
in thread converting binary to decimal

If your code runs and produces the correct answer, it does not qualify for the phrase "something bad". It's at least one or more levels above that!