text: Binary is nothing more than powers of two. For example, the number 37 in decimal is 3 * 10 + 7. In binary, it would be 100101, which is 1 * 2^5 + 1 * 2^2 + 1, or 32 + 4 + 1. To convert a number to binary, you need to divide it by two, and then arrange the consecutive remainders in reverse order.  Let's take 37 again:\n\n37 / 2 = 18 r 1\n18 / 2 = 9 r 0\n9 / 2 = 4 r 1\n4 / 2 = 2 r 0\n2 / 2 = 1 r 0\n1 / 2 = 0 r 1\n\nAnd there you have our binary number once more: 100101 (the remainders in reverse order).\n\nGood luck.