[fpc-devel] wrong result for abs(low(int64))

Kai Burghardt wiz at KaiBurghardt.de
Thu Apr 4 15:28:13 CEST 2024


Ahoy, hoy,

On 2024‑04‑04 15:14:38 +0200, Martin Frb via fpc-devel wrote:
> The below writes:  -9223372036854775808
> 
> Shouldn't absolute return a positive number?

No, see https://wiki.freepascal.org/Integer#characteristics
-- 
Sincerely yours,
Kai Burghardt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20240404/c8cc0ec0/attachment.sig>


More information about the fpc-devel mailing list