[fpc-devel] Format with zero padding
Marco van de Voort
marcov at stack.nl
Tue Jun 20 15:48:23 CEST 2006
> > SysUtils.Format ('%.4D', Some_Int);
> Sounds like I found a case where 'C' is more intuitive than pascal ;-).
With a C mindset, yes. There a leading 0 can have meaning. In Pascal an
extra leading zero never has meaning.
> Seriously, isn't "Format" an imitation of C's printf ? At least they are
> very similar, but on this detail (and maybe some others as well) they
> are different.
Yeah. Ah well, maybe in C07 that will be fixed.
More information about the fpc-devel