-
Notifications
You must be signed in to change notification settings - Fork 2
_short
abinition edited this page Nov 6, 2014
·
6 revisions
#short
###Convert to a short value or create an short variable.
Syntax
result = short value ;
short variable [= value] ;
Arguments
- list value
A value of any type.
Return Value
ushort result
- -32768 to 32767 : A value from -32768 to 32767.
The STATUS variable is set to $ACKNOWLEDGE
When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array
Exceptions
-
%ARGUMENT: Invalid arguments. Usage: short variable [= value] ;
-
%IDENTIFIER: 'variable' argument is not a valid identifier, literal, or reference
Description
- Convert to a short value or create an short variable.
Examples
put short ( 32767 ) ; //== 32767
put short ( 32768 ) ; //== -32768
put short ( 65535 ) ; //== -1
put short ( 65536 ) ; //== 0
put short ( 65537 ) ; //== 1
Related Links