WMLScript int() 函數

int() 函數返回 x 參數值的整數部分。

語法

n = Float.int(x)
成分 描述
n 該函數返回的整數。
x 一個數。

例子

var a = Float.int(5.32);

結果

a = 5