It's safer to place the modifier before the final letter (e.g. %.3Zf) or to pick a different letter (e.g. %.3F). That way, it doesn't restrict the strings into which the pattern can be placed.
I wonder what C# does.
In reply to Re^4: Can sprintf suppress leading zero for float < 1?
by ikegami
in thread Can sprintf suppress leading zero for float < 1?
by RotoValue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |