The binary number system uses only two digits, 0 and 1, to represent all numbers. It was invented by an Indian scholar named Pingala in the 2nd or 5th century BCE and is used internally by modern computers. To convert a base-10 number to binary, you divide the number by 2 and write down the remainders until reaching zero, then write the binary number from the remainders from bottom to top.