[fpc-devel]IntToHex difference

Johannes Berg johannes at sipsolutions.com
Sat Nov 22 17:40:58 CET 2003

On Fri, 2003-11-07 at 13:36, David Butler wrote:
> A small difference between FreePascal and Delphi's IntToHex function:

According to the docs, FPCs behaviour is wrong.

If \var{Digits} is less than the needed number of characters,
the string will NOT be truncated. If \var{Digits} is larger than the
needed number of characters, the result is padded with zeroes.
--end quote--

GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc
  Key-ID: 9AB78CA5 Johannes Berg <johannes at sipsolutions.de>
  Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20031122/d2a7e975/attachment.sig>

More information about the fpc-devel mailing list