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;
00h
$ typestr x;
SHORT
$ short(`12.3);
12
$ short(`120.9c);
120
$ short(32767);
32767
$ short(32768);
00h
// maximum value for a SHORT is 2^15-1=32767