Do you mean ways to convert numbers into binary code?
If you do, you could convert your number to a long int (since every number, even decimal ones, has a long int representation), and then convert it to binary.
There are lot of specific function to do that. It deppends on the programming language you're using.
Totally, there are two ways to convert continuous metaheuristic algorithms to binary form. First, you can use logical operators, and the second is using transfer functions like S-shaped, V-shaped, etc. Transfer functions (TF) are the easiest ways. You can study the following papers for more information: