How to convert a number to binary ?

Chipakias:
I do not know how to convert a number to binary.

It's not clear what you are trying to do. My guess is that you are trying to produce an ascii string of '1' and '0' characters containing a binary textual representation of an integer, similar to what you'd get if you printed the number to the Serial port with binary format. Is that right?