An optional second parameter specifies the base (format) to use; permitted values are BIN(binary, or base 2), OCT(octal, or base 8), DEC(decimal, or base 10), HEX(hexadecimal, or base 16). For floating point numbers, this parameter specifies the number of decimal places to use.
Looks pretty complete/correct to me.Hint: it's the same class
BASE (optional): the base in which to print numbers: BIN for binary (base 2), DEC for decimal (base 10), OCT for octal (base , HEX for hexadecimal (base 16).
Why do I see a different documentation?It's:
Because you're not looking at Serial.print documentation.See the hint above.
I googled 'Arduino serial' and clicked through to 'print' https://www.arduino.cc/reference/en/language/functions/communication/serial/print/It worked for me...!
aha, you're printing to a file on SD...Might have helped the initial question.That can introduce kinks.
Parametersfile: an instance of the File class (returned by SD.open())data: the data to print (char, byte, int, long, or string)
Corrections, suggestions, and new documentation should be posted to the Forum.
Why should I look at Serial.print documentation even if it's the same class? Someone reading the documentation I linked will find wrong or incomplete information IMO. Either point to Serial.print documentation or correct it.