Crestron SIMPL+
Datatype Conversions
SOURCE
INTEGER
INTEGER
INTEGER
LONG_INTEGER
LONG_INTEGER
LONG_INTEGER
SIGNED_LONG_INTEGER
SIGNED_LONG_INTEGER
SIGNED_LONG_INTEGER
SIGNED_INTEGER
SIGNED_INTEGER
SIGNED_INTEGER
Language Reference Guide - DOC. 5797G
®
DESTINATION
LONG_INTEGER
SIGNED_INTEGER
SIGNED_LONG_INTEGER
INTEGER
SIGNED_INTEGER
SIGNED_LONG_INTEGER
INTEGER
SIGNED_INTEGER
LONG_INTEGER
INTEGER
LONG_INTEGER
SIGNED_LONG_INTEGER
ACTION
Lower 2 bytes of destination = source.
Upper 2 bytes cleared.
The 2 bytes of source moved to destination.
2 byte number now treated as signed.
Lower 2 bytes of destination = source.
Upper 2 bytes cleared.
Lower 2 bytes of source moved to destination,
treated as unsigned.
Lower 2 bytes of source moved to destination,
treated as signed.
The 4 bytes of destination = source, now treated as
signed.
Lower 2 bytes of source moved to destination.
Lower 2 bytes of source moved to destination.
The 4 bytes of destination = source, now treated as
unsigned.
Lower 2 bytes of source moved to destination, 2 byte
number now treated as unsigned.
2 byte source is sign extended to 4 bytes
2 byte source is sign extended to 4 bytes
Software
®
SIMPL+
19
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?