请高手 帮忙:将这个算法 反写,头都大了。谢谢!!
--------------------
function ChangDataType(data)
{
//alert(data);
data = data.toString();
dataH = data.substr(0,data.length-6);
dataL = data.substr(data.length-6,6);
//alert(data + "--- " + dataH + "--- " + dataL);
dataL = dataL/0.6;
dataL = Math.round(dataL);
dataL = dataL.toString();
while(dataL.length != 6)
{
dataL = "0 " + dataL;
}
dataR = dataH + dataL;
return(dataR * 0.36);
}
------解决方案--------------------------------------------------------
Math.round(dataL);
怎么做?