Please enable JavaScript to view this site.

ESL Documentation

The range of valid numbers in an integer literal is -231 to 231-1.

When you specify an integer literal, you can specify minus signs and leading zeros. The following are valid integer literals:

 

0

-5

010

-9999

 

All other characters are invalid, including embedded blanks, commas, and decimals. The following are not valid integer literals:

 

3,942,885      # WRONG: contains commas

5E7            # WRONG: contains an alphabetic character

1.23           # WRONG: contains a decimal

2 3/4          # WRONG: contains an embedded blank and

               #        a division sign

 

An integer literal can be specified in any context in which an integer value is required; for example:

 

integer variable Max is 100000    # integer variable

key Key1 at position 50 75        # graphical coordinates

copy (Counter +1) to Counter      # arithmetic expression