Type any number, and scratch cat will convert it to binary. How does this work? It uses a common method of dividing a value by 2 until it is less than 1. Whenever the number is divided, if is divisible by two then it represents 0, otherwise if there is a decimal at the end (e.g. 4.5) then it represents 1. Now the reason it keeps dividing until the value is less than 1 is because it needs to keep dividing until the value is equal to zero, or equal to zero when rounded down. Each value is then to be read backwards, but the script automatically places each number to the end of the existing binary to convert it faster.
Special thanks to @AonymousGuy for the algorithm which checks if a number is divisible by two Rest of the credits go to me! (funnily enough) for figuring out how to use that algorithm to convert numbers into binary