Data Type Conversion; Data Type Deduction - ETAS MDA V8.6 User Manual

Table of Contents

Advertisement

ETAS
Name
Signed Integer
Unsigned Integer
IEEE Floating Point
Boolean
String
Enumeration
Mixed (combination of numeric and enu-
meration)
Array
Event
1
Other bit sizes in input files are supported but the data is converted to the
next higher available size.
2
The type can be displayed but is not supported in calculated signals.
3
Events are currently treated as strings.
4.4.1.1

Data Type Conversion

Values of one type can sometimes be converted to a different type according
to the following table:
Conversion
Convert_
ToBool(x)
Convert_
ToBool(x)
Convert_
ToDouble(x)
Convert_
ToDouble(x)
4.4.1.2

Data Type Deduction

Input signals have a defined type as can be seen in the type column of the Vari-
able Explorer. The types of intermediate results of a calculation formula are
chosen automatically depending on the input types and the applied operations.
This process is called type deduction.
MDA V8.6 – User Guide
Input
Output
Result
Type
Type
Numeric Boolean True if x != 0; false otherwise
Boolean
Boolean x
Numeric 64 bit
The closest number to x representable as
float
a 64 bit floating point number
Boolean
64 bit
1 if x is true; 0 otherwise
float
4 Calculated Signals
Bits
Supported
8, 16, 32, 64 bit
Yes
1
8, 16, 32, 64 bit
Yes
1
32, 64 bit
Yes
Yes
2
No
2
No
2
No
No
2 3
No
69

Advertisement

Table of Contents
loading

Table of Contents