[fpc-devel] Format with zero padding

Micha Nelissen micha at neli.hopto.org
Tue Jun 20 13:31:32 CEST 2006

Michael Van Canneyt wrote:
> in fpc it's a dot.
> Try
> %.4d
> This is in the docs:
> http://www.freepascal.org/docs-html/rtl/sysutils/format.html

Thanks, that works.

I did read that page, but only saw 'padded with spaces' and assumed
Precision was only applicable to floating point values, as it's "after
the dot".


More information about the fpc-devel mailing list