short
Syntax
short(X)
Arguments
x can be of any data type.
Details
Convert the input to the data type of SHORT.
Examples
x=short();
x;
// output
00h
typestr x;
// output
SHORT
short(`12.3);
// output
12
short(`120.9c);
// output
120
short(32767);
// output
32767
short(32768);
// output
00h
// maximum value for a SHORT is 2^15-1=32767