flex 移位

来源:互联网 发布:淘宝登陆名称怎么改 编辑:程序博客网 时间:2024/05/16 12:34

trace(0.3*3)
0.8999999999999999

public function getNumberOfValue():Number{
            numOfValue=numOfValue * 1e12;
            numOfValue=Math.round(numOfValue);
            numOfValue=numOfValue / 1e12;
            return numOfValue;
        }

原创粉丝点击