Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By btidey
#79400 For integers %nd prints with n characters and uses leading spaces.

If you want leading zeros then use %0nd where n is the total characters

So %02d should do what you want.
User avatar
By btidey
#79404 The %02d is OK in C, C++ The first character after the % can be a flag

nothing = pad with spaces
- left justify
+ display sign
0 pad with zeros


The main arduino printf implementation has been weak for floating point which I guess is why the precision . version is problematic.