in reply to Re^2: decimal to binary conversion
in thread decimal to binary conversion

What is it about the value '255' that allows the program to work correctly?

Even a stopped clock is right twice a day.