ETAS
Integer Numbers
Integers are usually specified as decimal numbers (base 10) using the digits
from '0' through '9'. Alternative number systems (bases / radices) can be used
by using one of the following prefixes:
Prefix Base Name
0b
2
0x
16
Binary only uses the digits '0' and '1'. Hexadecimal uses digits and letters 'A'
through 'F'. The letters in the number are not case sensitive.
Examples:
17 = 0x11 = 0b10001
12 = 0xC = 0xc = 0b1100
Note: Integer literals are currently implicitly treated as floating point numbers.
Floating Point Numbers
Floating point numbers use a '.' as decimal separator and optionally allow sci-
entific notation. The general format is:
+/- integer '.' fraction 'e' +/- exponent
Notes:
+/- is the character '-' or '+' indicating the sign and is optional.
l
Integer, fraction and exponent are positive integers.
l
Either integer or fraction can be left out.
l
The exponent starting at the 'e' is optional.
l
Spaces within the number are not allowed.
l
Examples:
2
l
-1.5
l
1e3 = 1000
l
3.7e-1 = 0.37
l
Boolean
True and false literals are currently not supported. As a workaround the not
operation can be used to create Booleans:
Boolean
false
true
Example:
MDA V8.6 – User Guide
Binary
Hexadecimal
Workaround
!1
!0
4 Calculated Signals
71