开发者

how to do this in action script

开发者 https://www.devze.com 2023-01-04 22:31 出处:网络
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

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

精彩评论

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