1.
幂函数 match:pow(m,n) 表示m的n次幂
2.
对数据进行取整,去掉小数, 返回整形
trunc(Number) -> integer()
Types:
Number = number()
3.对小数取整,四舍五入的函数
round(Number) -> integer()
Types:
Number = number()
Returns an integer by rounding Number.
> round(5.5).
6
Allowed in guard tests.
幂函数 match:pow(m,n) 表示m的n次幂
2.
对数据进行取整,去掉小数, 返回整形
trunc(Number) -> integer()
Types:
Number = number()
3.对小数取整,四舍五入的函数
round(Number) -> integer()
Types:
Number = number()
Returns an integer by rounding Number.
> round(5.5).
6
Allowed in guard tests.