How to convert a number to binary ?

Yes I know. Serial.print(y,bin).

Close, but no cigar.