Lugaru's Epsilon Programmer's Editor 14.04
Context:
|
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 (even if it begins
with the digit 0, unlike the C language). 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. If it begins with a 0o, it is an
octal constant (base 8). 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 |
Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.
|