in reply to Re^2: Can sprintf suppress leading zero for float < 1?
in thread Can sprintf suppress leading zero for float < 1?

Or a \b instead of a ^. That not only covers leading -, it also covers leading + ("%+f"), leading space ("% f") and cases where something else preceeds the %f.

Replies are listed 'Best First'.
Re^4: Can sprintf suppress leading zero for float < 1?
by temporal (Pilgrim) on Apr 15, 2012 at 04:32 UTC
    Ah! Good call, guys.