Truncating the original value is left as an exercise (already solved) by OP.
Except the OP used sprintf and your whole point was he shouldn't use sprintf here. Or does "don't use (s)printf when print would do" mean something else?
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |