in reply to (s)printf and rounding woes

That is a general property of binary floating-point numbers. The difficulty will show up in any language. If you need consistency in a fixed-point decimal representation, you should scale the numbers to be represented as integers.

After Compline,
Zaxo