[fpc-devel] Format with zero padding

Micha Nelissen micha at neli.hopto.org
Tue Jun 20 21:46:24 CEST 2006

Marco van de Voort wrote:
>>> 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.

It's a formatting string, not a number only. You think a digit *after*
the decimal point to be used for integers in front of the whole number
is more intuitive ?


More information about the fpc-devel mailing list