WMLScript int() 函数

int() 函数返回 x 参数值的整数部分。

语法
  1. n = Float.int(x)
成分描述
n该函数返回的整数。
x 一个数。
例子
  1. var a = Float.int(5.32);
结果
  1. a = 5

分类导航