Serial.print reference page ambiguity


The reference page for Serial.print ( gives the impression that its argument is alwasy treated as an 8-bit value, even though internally (at least as of version 0013) it’s apparently being handled as a long (setting an int “x” to -1 and executing:

Serial.print(x, HEX);

produced “FFFFFFFF”).


  1. Change the phrase “b: the byte to print, or” to something like “b: the value to print, or”.

  2. Change one or more examples to print a value greater than 255.

  3. Add a warning that values < 0 with HEX will produce 8-digit (rathern than the expected 2- or 4-digit) output.