-
Notifications
You must be signed in to change notification settings - Fork 2
_ushort
abinition edited this page Nov 6, 2014
·
6 revisions
#ushort
###Convert to an ushort value or create an short variable.
Syntax
result = ushort value ;
ushort variable [= value] ;
Arguments
- list value
A value of any type.
Return Value
ushort result
- 0 to 65536 : A value from 0 to 65536.
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: ushort variable [= value] ;
-
%IDENTIFIER: 'variable' argument is not a valid identifier, literal, or reference
Description
Convert to an ushort value or create an short variable.
Examples
put ushort ( -1 ) ; //== 65535
put ushort ( -2 ) ; //== 65534
put ushort ( 65535 ) ; //== 65535
put ushort ( 65536 ) ; //== 0
put ushort ( 65537 ) ; //== 1
Related Links