Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Epsilon Extension Language
      . . .
      The EEL Preprocessor
      Lexical Rules
         Identifiers
         Numeric Constants
         Character Constants
         String Constants
      Scope of Variables
      . . .

Previous   Up    Next
Identifiers  Epsilon Extension Language   Character Constants


Epsilon User's Manual and Reference > Epsilon Extension Language > Lexical Rules >

Numeric Constants

The term numeric constant collectively refers to decimal constants, octal constants, binary constants and hex constants.

A sequence of digits is a decimal constant, unless it begins with the digit 0. If it begins with a 0, it is an octal constant (base 8). The characters 0x followed by a hexadecimal number are also recognized (the digits 0-9 and the letters a-f or the letters A-F form hexadecimal numbers). These are the hex constants. The characters 0b followed by a binary number form a binary constant. A binary number contains only the digits 0 and 1. Constants may contain _ characters for readability, as in 1_000_000; these are ignored.

All numeric constants in EEL are of type int.



Previous   Up    Next
Identifiers  Epsilon Extension Language   Character Constants


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.