Microsoft Interview Question

How to convert an integer into a binary number?