7 Calculations | 118
7.2.4 Calculated Signals Details
7.2.4.1 Data Types
The following table gives an overview of the data types supported in calculated
signals:
Name Bits Supported
Signed Integer 8, 16, 32, 64 bit
1
Yes
Unsigned Integer 8, 16, 32, 64 bit
1
Yes
IEEE Floating Point 32, 64 bit Yes
Boolean Yes
String No
2
Enumeration No
2
Mixed (combination of numeric and enu-
meration)
No
2
Array No
Event No
2 3
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.
Data Type Conversion
Values of one type can sometimes be converted to a different type according to
the following table:
Conversion Input
Type
Output
Type
Result
Convert_
ToBool(x)
Numeric Boolean True if x != 0; false otherwise
Convert_
ToBool(x)
Boolean Boolean
x
Convert_
ToDouble(x)
Numeric 64 bit
float
The closest number to x representable
as a 64 bit floating point number
Convert_
ToDouble(x)
Boolean 64 bit
float
1 if x is true; 0 otherwise
MDA V8 | User Guide