I keep seeing where people are using displayBinary to convert a number to binary. How I understand it is that you can define the binary number you want to be displayed by simply writing the number (or a method of obtaining the number) in the function like such:
displayBinary(2);
and you can then recall that number as a binary by calling the displayBinary procedure again, telling it to convert the original number to a byte and then storing that byte info as a variable like such:
displayBinary(byte someVariable);
Is my understanding correct? It seems weird that the same procedure would take an input and also give an output. Can I re-use the displayBinary input later in my code (for example, input 3 instead of 2 so that I can convert it to binary) without disrupting my display Binary output earlier on in the code? Are there any other syntaxes or parameters/arguments used in the displayBinary procedure?