← Back to team overview

widelands-dev team mailing list archive

string formatting - integers + leading blanks

 

I am trying to use something like this:

static format node_format("(%3i, %3i; %2i)");

but these numbers are ignored. I noticed that similar code like this
'%5.1f' works, what should I use to make it work?

Also '%03i' works as intended...

Tibor

Follow ups