ceiling函数

返回大于或等于指定数值表达式的最小整数。

语法

(nExpression)

参数

nExpression

指定一个数值,( ) 返回其后续的整数。

返回值类型

数值型

说明
将一个带有小数位的数取整为下一个大于它的整数。

比如:

(2.5) = 3

(-2.3) = -2

(4) = 4

如果要把一个时间秒换成分钟,就可以 (num/60, 1)

另外,还可以结合其它函数计算工龄

Popularity: 16% [?]

Tags:
Related posts

cirtexhosting_ads.gif

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word