short
语法
short(X)
参数
x 可以是任意数据类型。
详情
将输入的数据类型转换为SHORT。
例子
$ x=short();
$ x;
00h
$ typestr x;
SHORT
$ short(`12.3);
12
$ short(`120.9c);
120
$ short(32767);
32767
$ short(32768);
00h
// SHORT 的最大值是 2^15-1=32767 -2 :sup:`7` +1~2 :sup:`7` -1