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

Needs a -?

Replies are listed 'Best First'.
Re^3: Can sprintf suppress leading zero for float < 1?
by JavaFan (Canon) on Apr 14, 2012 at 02:00 UTC
    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.
      Ah! Good call, guys.