Syntax Error in Real Number

Description

A value contains characters that are neither Arabic numbers nor characters ( . ), ( - ), ( + ) or "e" and "E".

The characters "e" or "E" can be used in the following context only: after a number you need to type the character "e" or "E", then a sign (- ) or (+) and another number indicating the power. For example: 3e+3. Using the characters "e" and "E" in another context causes this compilation error.

Troubleshooting Tips

Check number syntax. Delete all characters that are not allowed to be used in numbers.

Example

Sub UserProc;
Var
    d: Double;
Begin
    d := 3ee+3;
End Sub UserProc;

When the specified code is compiled, the string d := 3ee+3; displays the following error: Syntax error in real number. To resolve the error, delete one character (e) to get the total value 3000 or delete both characters (e) to get the expression 3+3.

See also:

Compiler Messages