Ich hatte schon ein code hier gepostet.

Hier noch einmal mit kleine Änderung und hoffe das es weiter hilft:

Code:
#include <default.c>

STRING *sBin = ""; 

void Dec2Bin(int n) {
	if (!n) {return;
		}else{
		Dec2Bin(n/2);
		str_cat_num(sBin,"%.0f",n%2);
	}
}

void main() {
	int iDec = 11;
	Dec2Bin(iDec);
	printf("%s", _chr(sBin));
}



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