@Nicholas
Here is another sample that convert dec to bin, but as EvilSOB already said that there is no need conversion.

@EvilSOB
Welcome back!

Code:
#include <default.c>
#include <stdio.h>

void iDecBin(int n) {
	if (!n) {return;
		}else{
		iDecBin(n/2);
		printf("%d", n%2);
	}
}

void main() {
	wait(1);
	char cStr[256];
	int iDec = 100;
	sprintf(cStr, "%x", iDec);
	printf("dec %d in hex is 0x%s\n", iDec, cStr);
	iDecBin(iDec);	// dec 100 in bin is 1100100
}




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P