开发者

how to do this in action script

Number type variable for eg xxxx=0.200000585858;

how do i convert xxxx value a开发者_运维问答s 0.200?


please see Number::toFixed.


This should also work. But your question wasn't specific on wether you wanted the number to be rounded or not.

Math.round(xxxx*1000)/1000
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜