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". Micha