Delphi Error – E2102 Integer constant too large

Delphi Compiler Error

E2102 Integer constant too large

Reason for the Error & Solution

You have specified an integer constant that requires more than 64 bits to represent.

program Produce;

  const
    VeryBigHex = $80000000000000001;

begin
end.

The constant in the above example is too large to represent in 64 bits, thus the compiler will output an error.

program Solve;

  const
    BigHex = $8000000000000001;

begin
end.

Check the constants that you have specified and ensure that they are representable in 64 bits.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...