EasyManua.ls Logo

ETAS MDA V8 - Page 120

Default Icon
153 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Calculations | 120
"Integer Numbers" below
"Floating Point Numbers" below
"Boolean" below
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 Binary
0x 16 Hexadecimal
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.
Integer, fraction and exponent are positive integers.
Either integer or fraction can be left out.
The exponent starting at the 'e' is optional.
Spaces within the number are not allowed.
Examples:
2
-1.5
1e3 = 1000
3.7e-1 = 0.37
Boolean
True and false literals are currently not supported. As a workaround the not oper-
ation can be used to create Booleans:
MDA V8 | User Guide

Table of Contents