CAST_TO_DINT(a)
Converts the type of a to a DINT type without changing the underlying bit pattern.
Parameters
a (REAL or DWORD)
The value whose data type is to be converted to a DINT.
Return Value
Returns a DINT.
Remarks
Converts the data type to DINT data type by reinterpreting the raw 32 bits. Typically used with communications to correct the actual data type of a data value.
Examples
CAST_TO_DINT(1112.1245) returns 1149961212
CAST_TO_DINT(16#40A00000) returns 1084227584
See Also
Standard Functions | CAST_TO_REAL | CAST_TO_DWORD
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion