Converting a binary integer value to a character representation follows the basic path:
Allocate a string array long enough to hold any number of digits
While the number is greater than zero
Get the remainder of the number divided by the base
Convert the resulting value to a character (add '0' for decimals)
Add the resulting character to the next position of the string array
Divide the number by the base ignoring any remainder
Repeat the While loop
When the number has been reduced to zero, display the string, in reverse order.
You can see how this works by emulating this algorithm manually using paper and pencil.