How to pass decimal number to binary and vice versa

How to pass decimal number to binary and vice versa