[fpc-devel] Format with zero padding
Micha Nelissen
micha at neli.hopto.org
Tue Jun 20 13:39:31 CEST 2006
Vinzent Hoefler wrote:
> On Tuesday 20 June 2006 10:44, Micha Nelissen wrote:
>
>> How can I zero-pad using Format ?
>
> RTFM. :-)
>
> SysUtils.Format ('%.4D', Some_Int);
Sounds like I found a case where 'C' is more intuitive than pascal ;-).
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.
Micha
More information about the fpc-devel
mailing list