Serial.print(x,DEC);// print as an ASCII-encoded decimalSerial.print(x,HEX);// print as an ASCII-encoded hexadecimalSerial.print(x,OCT);// print as an ASCII-encoded octalSerial.println(x,BIN);// print as an ASCII-encoded binary