how to convert positive decimals to binary
You can use an assignment statement to copy a value in an int variable to a byte variable by casting it.
Or are you talking about converting a String of decimal digit (0-9) characters to a String of binary digit (0-1) characters?