ArduinoCore-API icon indicating copy to clipboard operation
ArduinoCore-API copied to clipboard

Way to specify number of digits / places when printing hex, octal, and binary numbers. [imported]

Open cmaglie opened this issue 13 years ago • 1 comments

This is Issue 549 moved from a Google Code project. Added by 2011-05-24T19:34:41.000Z by [email protected]. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium, Component-Core

Original description

Serial.print(n, HEX, 3); // for example

cmaglie avatar Nov 15 '12 18:11 cmaglie

Recommendation: don't implement this if it causes the size of certain executables to increase. The "certain executables": ones which don't use this feature.

Rationale: I have a small board and I don't want to waste the tiny memory I have. Furthermore, I feel that if someone needs this feature, then they should use a more powerful system than an Arduino. (And I =do= use this feature heavily, but in big-time programs.)

ISO-8652 avatar Nov 20 '16 19:11 ISO-8652