WML Float

The Float library contains a set of math functions.
WMLScript Float 库(library)包含一组数学函数。


WMLScript Float Library Functions
WMLScript Float 库(Library)函数

The Float library works only on clients that support floating-point numbers. If floating-point numbers are not supported, all functions should return invalid.
Float Library 近在支持浮点数字(floating-point)的客户端运行。如果不支持浮点数字,函数将失效。

Function
函数
Description
描述
ceil(x)Returns the nearest integer that is not smaller than a specified number
返回不小于指定数字的最小整数
floor(x)

Returns the nearest integer that is not larger than a specified number
返回不大于指定数字的最大整数

int(x)Returns the integer part of a specified number
返回指定数字的整数部分
maxFloat()Returns the largest possible floating-point number
返回最大的浮点数字
minFloat()Returns the smallest possible floating-point number
返回最小的浮点数字
pow(x,y)Returns the value of x raised to the power of y
返回x的y次访
round(x)Rounds a number to the nearest integer
返回x四舍五入后的整数
sqrt(x)Returns the square root of a number
返回一个数字的平方根
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值